help regarding triming

Dear friends,

How to trim my empty line in text file..

out =new FileInputStream("example.txt");

dout=new DataInputStream(out);

while(dout.available()!=0)

{

line=dout.readline();

--

-

}

so if there is any empty line at first and or last.. the condition (ie) while() loop fails ultimately i cont read the data.How can i trim those empty line

thanks in advance.

kailash.s

[448 byte] By [kailu.prakasha] at [2007-11-26 20:44:26]
# 1
You should probably post this in one of the Java programming forums, not the Java Desktop forum...
DoxBriana at 2007-7-10 2:05:14 > top of Java-index,Desktop,Sun Java Desktop System...