Raised This Month: $ Target: $400
 0% 

Solved Add character in existing line


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-14-2018 , 06:49   Re: Add character in existing line
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
It's not very hard:
1.Create a temporary file.
2.Open the original file and read line by line.
3.Write all lines from the original file to the temporary file exactly how they are, except the desired line, which you edit and then write.
4.Delete the original file.
5.Rename the temporary file to the original name.
I'm aware of that already, but isn't there another way?
__________________
edon1337 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 12:45.


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