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.
__________________