Home » Questions » Computers [ Ask a new question ]

Delete blank lines from a text file

Delete blank lines from a text file

I am trying to delete all the blank lines in a text file. Is there a quick way to do this?

Asked by: Guest | Views: 30
Total answers/comments: 1
Guest [Entry]

"Switch to Extended search mode in the Replace dialog.

Find what: \r\n\r\n

Replace with: \r\n

Press Replace All. All the blank lines are gone."