| View previous topic :: View next topic |
| Author |
Message |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Sat Nov 26, 2005 11:50 am Post subject: Strip CRLFs from file [Resolved] |
|
|
Can someone show me how to strip Carriage Returns and Line Feeds from files?
I'd prefer to do it with string.dll, rather than use a list. But hey, whatever works. _________________ cheers
Dave
Last edited by DaveR on Sat Nov 26, 2005 4:45 pm; edited 2 times in total |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sat Nov 26, 2005 12:49 pm Post subject: |
|
|
| Code: | list create,1
%%filecontents = @string(FileToVar, %%infile)
%%filecontents = @string(Replace,%%filecontents,@CHR(13)@CHR(10),,)
list add,1,%%filecontents
list savefile,1,%%outfile
list close,1 |
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|