Raised This Month: $ Target: $400
 0% 

read_file ( const file[], line, text[], len, &txtLen )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jim_yang
Veteran Member
Join Date: Aug 2006
Old 08-09-2011 , 06:39   Re: read_file ( const file[], line, text[], len, &txtLen )
Reply With Quote #1

last parameter tells u the length of the text you read from that line, so you should do this
new len;
read_file ( FILE_NAME, 0, s_Buffer, sizeof( s_Buffer-1), len )
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-09-2011 , 08:43   Re: read_file ( const file[], line, text[], len, &txtLen )
Reply With Quote #2

Using fopen(), fgets(), fclose(), etc are more better if you are going to read more than one line.
__________________
fysiks is offline
gamer99
Senior Member
Join Date: Jul 2011
Old 08-09-2011 , 10:30   Re: read_file ( const file[], line, text[], len, &txtLen )
Reply With Quote #3

I need to read one line only and then delete it and write some new line there
gamer99 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 03:27.


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