ibec_fs_ReadString
Reads Count bytes from the file stream created with ibec_fs_OpenFile.
Syntax
function ibec_fs_ReadString(FileHandle : variant; Count : integer) : string;
Description
Use ibec_fs_ReadString to read Count bytes from the file stream created with ibec_fs_OpenFile into a variable in cases where the number of bytes is known and fixed.
This function now supports files larger than 2 GB.
Example
execute ibeblock as begin fs = ibec_fs_OpenFile('C:\MyData.dat', __fmOpenRead); if (fs is not null) then begin ibec_fs_Seek(fs, -100, __soFromEnd); MyStr = ibec_fs_ReadString(fs, 100); ibec_fs_CloseFile(fs); end end
See also:
ibec_fs_WriteString
back to top of page
<< ibec_fs_Readln | IBEBlock | ibec_fs_Seek >>