How to delete a particular line from a file?

Which text editor will let me easily delete characters at the end of every line in a text file? I have a text file that has commas, and I want to delete all the commas at the end of each line, but not the other ones.

  • Answer:

    You can use either Notepad or Wordpad to do this. Just open the file, go to the Edit... Replace menu (or press Control + h on the keyboard), type a comma in the Find What text box, leave the Replace With text box blank and click on the Replace All button - job done. *EDIT* I missed the fact that you want to retain commas within lines. Neither Notepad nor Wordpad seem to have the ability to find paragraph marks. You could do it in a word processor, but that doesn't really answer your question - sorry. You could have a look at Notepad++ - http://notepad-plus.sourceforge.net/uk/site.htm

Anonymous at Answerbag.com Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.