Raised This Month: $ Target: $400
 0% 

Remove a line in a file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-06-2007 , 19:47   Re: Remove a line in a file
Reply With Quote #1

It's not crashing, it's going infinite.

Last edited by [ --<-@ ] Black Rose; 01-07-2007 at 12:44.
[ --<-@ ] Black Rose is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 01-07-2007 , 03:12   Re: Remove a line in a file
Reply With Quote #2

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
It's not crashing, it's going infinite.
It stops reading the file if it finds the line that it is looking after, see the break?
Deviance is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-07-2007 , 12:44   Re: Remove a line in a file
Reply With Quote #3

Code:
fopen(filename,"wt+")
since of this, the text output is "" on every line. change wt+ to r+t
Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
It's not crashing, it's going infinite.
[ --<-@ ] Black Rose is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 01-07-2007 , 13:05   Re: Remove a line in a file
Reply With Quote #4

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
Code:
fopen(filename,"wt+")
since of this, the text output is "" on every line. change wt+ to r+t
There is no flag r+t as i know.
Deviance 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:21.


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