double FileReadDouble (int handle, int size=DOUBLE_VALUE)
Reads the double-precision number with floating point from the current binary file position. The number format size can be 8 bytes (double) or 4 bytes (float).
倍精度浮動小数点数を現在のバイナリ ファイルの位置から読み取ります。数値形式サイズは、8バイト(double)または、4バイト(float)を指定できます。
To get the error information, one has to call the
GetLastError() function.
詳細なエラー情報を取得するには、GetLastError() 関数を呼び出します。
Parameters:
パラメータ:
handle – FileOpen() 関数によって返されたファイル ハンドル。
size – Format size. Can be CHAR_VALUE(1 byte), SHORT_VALUE(2 bytes) or LONG_VALUE(4 bytes).
形式サイズ。CHAR_VALUE(1バイト)、SHORT_VALUE(2バイト)、LONG_VALUE(4バイト)を指定できます。
Sample:
サンプル:
int handle ;
double value ;
handle = FileOpen ( "mydata.dat" , FILE_BIN ) ;
if ( handle & gt ; 0 )
{
value = FileReadDouble ( handle , DOUBLE_VALUE ) ;
FileClose ( handle ) ;
}
0 people found this article useful This article was helpful
This article was helpful
0 people found this article useful