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

Home » Public Forums » archive » Substituting multiple strings into a program
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Substituting multiple strings into a program [message #81086] Wed, 08 August 2012 12:50
MightyMrFish is currently offline  MightyMrFish
Messages: 3
Registered: August 2012
Junior Member
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Greek and other Symbols in Coyote Graphics
Next Topic: Re: Most significant digit and formatting floating point output

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

Current Time: Wed Oct 08 17:00:53 PDT 2025

Total time taken to generate the page: 0.00376 seconds