int FileWriteInteger(int handle, int value, int size=LONG_VALUE)
The function writes the integer value to a binary file. If the size is SHORT_VALUE, the value will be written as a 2-byte integer (the short type), if the size is CHAR_VALUE, the value will be written as a 1-byte integer (the char type), and if the size is LONG_VALUE, the value will be written as a 4-byte integer (the long int type).
この関数は整数の値をバイナリ ファイルに書き込みます。サイズが SHORT_VALUE の場合、値は 2バイトの整数(short型)で書き込まれます。サイズが CHAR_VALUE の場合は、値は 1バイトの整数(char型)で書き込まれます。サイズが LONG_VALUE の場合は、値は 4バイトの整数(long int型)で書き込まれます。
Returns the actually written bytes count or a negative value if an error occurs.
エラーが発生した場合は、実際に書き込んだバイト数か、負の値を返します。
To get the detailed error information, one has to call the GetLastError() function.
詳細なエラー情報を取得するには、GetLastError() 関数を呼び出します。
Parameters:
パラメータ:
Sample:
サンプル: