enter discovery

hi, i've an example file:

"Mother NE:

Total Capacity:

Capacity Part1:

Capacity Part2:

1.1 - BOARD INFORMATION

"

i'm searching this file line by line and a wanna know if line contains an epmty string, so after CapaCity Part2 is an empty line with enter key. i've tried:

if(line.indexOf("\n")>-1) -->true, but it doesn't work. thanks for any advice. best regards

Jarek

[443 byte] By [alcatraz123a] at [2007-11-27 6:34:15]
# 1
line.equals("")or evenline.trim().equals("")?
quittea at 2007-7-12 18:00:33 > top of Java-index,Java Essentials,Java Programming...
# 2
I am not so sure, but as long as you do not change your delimiters, end of lien characters and such will be ignored... Not sure about this though...
nayon_7a at 2007-7-12 18:00:33 > top of Java-index,Java Essentials,Java Programming...