Raised This Month: $ Target: $400
 0% 

replacing a whole line in a file with nothing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 01-07-2007 , 07:15   Re: fopen modes, read + write in one file.
Reply With Quote #1

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
How do you use fopen to read AND write to a line/file?
I've tryed different modes, "r+w", "w", "a+", "a", "+"... none would work. I mean, some would read them, and some would just go on forever and read nothing and one of them would start printing some lang like "do not flood" in 5 different languages, replacing my lines.
that would be r+t
http://www.cplusplus.com/reference/c...dio/fopen.html
__________________
plop
p3tsin is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 01-07-2007 , 07:42   Re: fopen modes, read + write in one file.
Reply With Quote #2

at+
Deviance is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-07-2007 , 11:13   Re: fopen modes, read + write in one file.
Reply With Quote #3

Quote:
Originally Posted by p3tsin View Post
Thank you!
[ --<-@ ] Black Rose is offline
Reply



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 22:27.


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