Jump to navigation Jump to search
INT fwrite ( <INT filehandle> , <VARIABLE data> )
INT fwrite ( <VOID POINTER data_pos> , <INT length> , <INT filehandle>)
Writes the variable data to a file loaded with fopen.
to be extended...
|INT filehandle||- Identifier of the file loaded with fopen.|
|VARIABLE data||- The data to write to the file (any type of variable).|
INT : The number of bytes written to the file.
Process writething(STRING loadpath); Private handle; // handle for the loaded file druppels; // the data to write to the file Begin druppels=rand(1,10); handle=fopen(loadpath,O_WRITE); // opens the file in writing mode fwrite(handle,druppels); // writes the druppels variable to the file fclose(handle); // zipping up after business is done End