Need to read a text file line by line, then write lines with a certain criteria to a save file
Posted on 2015-01-27
I have very large text files with data on a line by line basis. I need to scan down through the file looking for a keyword that could be a trigger, then write that line out to a holding file. When the source file reaches EOF, then close it and the target file.
I keep having the open files step on each other, and I'm not sure how to specify reading from one, then writing to the other. Can I have both open at the same time?