Fputchar

From SA-MP Wiki

Jump to: navigation, search


Write one character to a file.


Parameters:
(handle, value, utf8=true)
handleThe File handle to use, earlier opened by fopen().
valueThe character to write into the file.
utf8Should the character be written as UTF8?


ReturnsThis function doesn't return a specific value


new File:gFile = fopen("file.txt", io_write);
fputchar(gFile, 'e', false); //write "e" into gFile
Personal tools