I need to know how to count no of blank lines in a file and also how to remove them.
ASAP
I need to know how to count no of blank lines in a file and also how to remove them.
ASAP
Read the file line by line. If the text of the line is empty then the line is blank and you can skip that line. Otherwise write the line to another file. When you're done, rename the new file to the old name.
Bookmarks