The user should add
Code: Select all
f.pos := 0
This may be a bug.
Code: Select all
f.pos := 0
When a file containing a UTF-8 or UTF-16 byte order mark (BOM) is opened with read access, the BOM is excluded from the output by positioning the file pointer after it. Therefore, File.Pos may report 3 or 2 immediately after opening the file.
Return to “Suggestions on Documentation Improvements”
Users browsing this forum: No registered users and 15 guests