Hi all,
I read a text file line by line and I want to skip the empty line, which has no string at all(only space).Here is the code I use but it doesn't work.
I wonder if I use the right regular expression.
Thank you,
String line;
while((line=inputFile.readLine()!=null) &&line.matches("\\w+"))
{
//do something here
}