WriteFloat
Write a set of float data into file.
UINT WriteFloat( void * pSrcBuffer, int nDataTypeSize, UINT nItemCount, BOOL bIsLittleEndian = TRUE )
The number of items read from file.
EX1
void file_WriteFloat_ex1() { file ff("C:\\float.txt", file::modeCreate | file::modeWrite); vector<float> vf(5); for ( int ii = 0; ii < vf.GetSize(); ii++ ) vf[ii] = ii*1.25; ff.WriteFloat(vf, sizeof(float), vf.GetSize()); ff.Close(); file fr("C:\\float.txt", file::modeRead); vector<float> ve(5); fr.ReadFloat(ve, sizeof(float), ve.GetSize()); fr.Close(); //vf and ve should contain same data. return; }
file::ReadFloat
origin.h