Hi,
I would like to ask if anyone knows how can I delete empty lines from a file.
I thought that I have to crate a loop like
FileInputStream fstream = new FileInputStream("input.txt");
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader (new InputStreamReader(in));
String strLine;
while(br.readline()!=null)
{
//....
}
But the program stops in the first null line.
Any ideas ?
Thanks