J
jack.smith.sam
Hi All,
I am using this segment to read a file:
String str
while ((str=in.readLine()!=eof)
but I get error because of eof (I want to detect end of file). How can
I use it?
Also is there any way to detect blank lines in a file? for example:
a
b
If I read the second line is it equal to null or something elase?
Thanks for your help
Jack
I am using this segment to read a file:
String str
while ((str=in.readLine()!=eof)
but I get error because of eof (I want to detect end of file). How can
I use it?
Also is there any way to detect blank lines in a file? for example:
a
b
If I read the second line is it equal to null or something elase?
Thanks for your help
Jack