Hi,
I am using buffered reader to grab a line at a time from a text file. I am trying to also get the line number from the text file using a tracking integer. Unfortunately BufferedReader is skipping empty lines (ones with just /n or the carriage return).
Is there a better way to solve this? Would using scanner work?
Example code:
int lineNumber = 0;
while ((s = br.readLine()) != null)
{
this.charSequence.add(s, ++lineNumber);
}