comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Substituting multiple strings into a program
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Substituting multiple strings into a program [message #81083 is a reply to message #81082] Wed, 08 August 2012 14:04 Go to previous messageGo to previous message
MightyMrFish is currently offline  MightyMrFish
Messages: 3
Registered: August 2012
Junior Member
I want something that will read one of the filenames and insert it into my program.
How I have it set up right now, I'm using this command line:
name =''
read, 'What is the filename?', name

Then I use a READCOL command to plot the data:

READCOL, name, …

I'd like it if I could have the "name" part automatically filled in with the names on the list. One by one of course. Once the name is inserted, the rest of the command does its thing and I get a graph of the data.

If it helps, I'll post my program.


On Wednesday, August 8, 2012 1:16:20 PM UTC-7, Paul van Delst wrote:
> So you want to read a "control" file containing a list of filenames (or portions of filenames), and then loop over that
>
> filename list reading and displaying the data in each file?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: append files
Next Topic: A single title, xtitle and ytitle

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:11:20 PDT 2025

Total time taken to generate the page: 0.96063 seconds