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 #81085 is a reply to message #81083] Wed, 08 August 2012 13:16 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
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?


On 08/08/12 15:50, MightyMrFish wrote:
> I believe the topic may be a bit confusing, so I'll try to describe what I wish to do here. You'll have to forgive me
> if I don't use the correct terminology as I'm not exactly skilled in any sort of programming.
>
> What I want to do is get individual strings of text from a file and place them into a program, run that program, and
> then repeat the program with the next string of text in the file. For example, say I have a file titled "DogNames"
> that has a list of names of dogs (Rex, Cherry, Sniffles, Captain Kevin the V, etc.). I have a set of text documents
> with data corresponding to each name. The text documents are titled according to which dog the data is from (data on
> Rex is titled Rex, data from Cherry is titled Cherry, etc.) The data is columns of information. I have a program
> already that calls for the user to input the name of a file to draw data from and what name to give the graph it
> spits out.
>
> I'd like to be able to have the program read a list of names and, since they directly correspond to file names, be
> able to sub in each name into the program I already wrote and spit out a graph with the same name. I can do the
> latter (naming the graphs), but the former is what I'm unsure about. I know what I want to do (read name1, insert
> into program, produce graph, read name2, insert into program, etc...), but don't know what commands to use or even
> the appropriate syntax.
>
> Any advice/help would be greatly appreciated.
[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: Fri Oct 10 14:22:26 PDT 2025

Total time taken to generate the page: 0.24122 seconds