I am loading a text file......... trying to save the results into another text file but it is only saving one line to the new text file. There are hundreds of lines in that need to be save to new text file, any clues?
A useful thing when you want help with a code snippet is to provide a code snippet that compiles and reproduces the problem you are experiencing. The snippet you provided does not do the first, so it cannot do the second.
If test2.close() is in the body of the for loop as it appears to be in your unformatted code above, that's going to be a problem, as any output done in iterations of the loop subsequent to the first will be trying to output to a closed stream.