August 31st, 2009, 09:10 PM
Removing the return from end of line
I have a file that I need to remove the return character from the end of each line. There must be a way to do it with a script.
December 18th, 2009, 10:56 PM
You could use Textpad, and create a Macro to do this... just one way.
I have a small tool for this
I have a small tool written in AutoIt.
It reads your file and removes enter, then writes in another file.
I have included the compiled .exe in today's promotions on my site.
You can download it from there or use the code below and compile by yourself:
$n = InputBox("filename","enter the filename - must be in SAME folder with script!",'')
$f = FileOpen($n, 0)
$f1 = FileOpen($n & '-result.txt', 2)
$l = FileReadLine($f)
If @error = -1 Then ExitLoop
$l1 = StringReplace($l, @CRLF, '')
MsgBox(0, 'Ready!', "Your new file is " & $n & '-result.txt')