Hi,
I got the following code off of the sun website, and I was wondering if anyone would be able to tell me how to go through each line of the file one by one and store store each line in a string so I can manipulate it. The sun site wasn't very helpful. Thanks for your help.
"Pin me. Perl me."
Regards,
Chris
I got the following code off of the sun website, and I was wondering if anyone would be able to tell me how to go through each line of the file one by one and store store each line in a string so I can manipulate it. The sun site wasn't very helpful. Thanks for your help.
Code:
import java.io.*;
public class Program1
{
public static void main (String[] args) throws IOException
{
File inputFile = new File("Censure.txt");
FileReader in = new FileReader(inputFile);
}
}
"Pin me. Perl me."
Regards,
Chris