Raised This Month: $ Target: $400
 0% 

Remove new line character from file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 04-11-2009 , 20:47   Re: Remove new line character from file
Reply With Quote #4

Well, afaik, there are two ways.

1. Read lines from file 1 and write them to file 2, skip the deleted lines.
2. Read file 1 into a buffer, remove lines, write to file 2.

If you need code, I can show you.

Usually, I just do write_file("file", "", line). It's shorter code and I don't really care about extra empty lines.
__________________
stupok is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode