How do I delete the last line of a text file?!? - 21/02/03 09:08 AM
I am trying to use the /write command to delete the last line in a text file (which is a blank line). I tried using:
/write -d file.txt
as the Mirc help says not specifying a line number will remove the last line in a file. In fact, this will remove the last line in a file that contains any text, but if the last line is blank, it will remain!
I also tried using $crlf to remove any carriage returns. This will remove blank lines in a text file EXCEPT for the last line! Can someone please help me?
Thanks in advance.
/write -d file.txt
as the Mirc help says not specifying a line number will remove the last line in a file. In fact, this will remove the last line in a file that contains any text, but if the last line is blank, it will remain!
I also tried using $crlf to remove any carriage returns. This will remove blank lines in a text file EXCEPT for the last line! Can someone please help me?
Thanks in advance.