Maybe one of you gurus can help me out with this... I'm trying to write a script that will read in a text file of full of names and execute some code for each name. I got it all figured out except for the inputting part; that's where I'm stumped.
How can I read 'names.txt' line by line and not the entire file contents at once...?
example:
Names.txt =
chris
joe
bob
... open file, read first name; do this.
Next line, read name, do this.
etc...
names.txt will not always have the same contents. A push in the right direction would be appreciated....
Thanks
~ chris