RandomAccessFile.readLine() returns an empty string

From: Aki Laukkanen (aki.laukkanen_at_helsinki.fi)
Date: 04/29/04


Date: Thu, 29 Apr 2004 11:46:16 +0300

Hi all,
I'd appreciate some info on strange behavior of the
randomAccessFile.readLine() -method.
I'm trying to read in a line from an ASCII file (with line separators), but
instead of returning the desired line, readLine() just returns "".
To get to the selected line, I used seek(lineNumber * lengthOfLine). Is this
a possible source of the problem?
This problem occurs in Win-32 filesystem environment.
Has anyone encountered a similiar problem, and if so, what caused it? (And
how did you correct it ? :)
Thanks in advance,

-- 
Aki "Sus" Laukkanen