Reading A Generic File

nezuld

Active Member
I would like to read a generic file (not xml) that contains a list of text, for example, and be able to read it into a variable within a script. So it could have a list of names to look for and run that list of names, as an example.
What command would I use, or point me in the right direction please.

Thanx
 

Amadeus

The Maestro
Staff member
If you're just using a flat file, then just make it one of the files of the script itself. If you want to keep it separate, then just make it a separate .iss file that only has the one variable, etc.

Multiple .iss files can be included together in the same running script using #include, and lots of scripts here have examples of that (including EQ2Bot.)
 

nezuld

Active Member
If you're just using a flat file, then just make it one of the files of the script itself. If you want to keep it separate, then just make it a separate .iss file that only has the one variable, etc.

Multiple .iss files can be included together in the same running script using #include, and lots of scripts here have examples of that (including EQ2Bot.)
Thank you for the reply.
What I am looking for is an external program to change a file that has just raw variable(s) in it, be they numbers, or text... Then my script will read in and act on those numbers/text. Since it will be a list I didn't want to try to code the code to code code.... (lol) So not an .iss file (with other examples as you stated) but a .dat file with just raw data that I can read in line by line.

thanx
 

nezuld

Active Member
Thank you for the reply.
What I am looking for is an external program to change a file that has just raw variable(s) in it, be they numbers, or text... Then my script will read in and act on those numbers/text. Since it will be a list I didn't want to try to code the code to code code.... (lol) So not an .iss file (with other examples as you stated) but a .dat file with just raw data that I can read in line by line.

thanx
That seems to be what I was looking for... thank you
 
Top Bottom