> This would seem to be a common task but I can't seem to find an
> answer on the web. Is there a definitive/well tested class/library
> that can strip blank lines and lines with nothing but spaces from a
> text file using FileInputStream?
How difficult can it be to add a one-line conditional to the standard
idiom...
BufferedReader br = new BufferedReader(...);
String line;
while ((line = br.readLine()) != null) {
if (line.trim().length() != 0) {
// whatever
}
}
br.close();
Note too that you should be using a Reader to handle text files, not
an InputStream.
/gordon

Signature
[ don't email me support questions or followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e