forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Strip CRLFs from file [Resolved]

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sat Nov 26, 2005 11:50 am    Post subject: Strip CRLFs from file [Resolved] Reply with quote

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
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Sat Nov 26, 2005 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group