RandomAccessFile.readLine() returns an empty string
From: Aki Laukkanen (aki.laukkanen_at_helsinki.fi)
Date: 04/29/04
- Next message: Fahd Shariff: "Re: XML Parsing with DOMParser"
- Previous message: Andrew Thompson: "Re: Pausing Threads From Events"
- Next in thread: Andrew Thompson: "Re: RandomAccessFile.readLine() returns an empty string"
- Reply: Andrew Thompson: "Re: RandomAccessFile.readLine() returns an empty string"
- Reply: Roedy Green: "Re: RandomAccessFile.readLine() returns an empty string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Fahd Shariff: "Re: XML Parsing with DOMParser"
- Previous message: Andrew Thompson: "Re: Pausing Threads From Events"
- Next in thread: Andrew Thompson: "Re: RandomAccessFile.readLine() returns an empty string"
- Reply: Andrew Thompson: "Re: RandomAccessFile.readLine() returns an empty string"
- Reply: Roedy Green: "Re: RandomAccessFile.readLine() returns an empty string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]