Raised This Month: $ Target: $400
 0% 

File Writing....:O


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 07-13-2006 , 23:46   Re: File Writing....:O
Reply With Quote #1

Quote:
Originally Posted by Hawk552
first off, you didn't check if file_handle is valid (use if(!file_handle) { return } or whatever) then on top of that you open it with flags "rt+" which don't even exist. Use r,w,or a.
How doesn't rt+ exist?

Quote:
Returns 0 on failure.

Mode uses the standard C library of mode types.
The first character can be:
"a" - append
"r" - read
"w" - write

The second character can be:
"t" - text
"b" - binary

You can also append a "+" to specify both read and write.
It obviously does if it writes to the file after reading it when the map name isn't found in the settings.

----

BTW, the file_handle returns positive. It's not invalid.
__________________


Last edited by mysticssjgoku4; 07-14-2006 at 00:24.
mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 07-15-2006 , 12:21   Re: File Writing....:O
Reply With Quote #2

Any ideas anyone?
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
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 07:56.


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