Hi,
i'm new in
java, and ai don't know how to read a line from a text file. the line has 2 info, the name of a person (20 char) an the rest of the line are letters from a to e, like this:
JON DOE AABBCCCD E DDBBCC
and the file has many lines, and i want to analize each line.
I was doing something like this, but it reads all the text.
Any suggestion?
thanks
--------------------------------------------------------------------------
try {
BufferedReader in = new BufferedReader(new FileReader("PAA.txt"));
String str;
while ((str = in.readLine()) != null) {
System.out.println(str);
in.close();
}
catch (IOException e) {
}
}