BOM and ReadString
Posted: Thu Jul 18, 2013 1:45 am
File with a BOM prefix (Byte Order Mark)
If ReadString() is used to read a file line-by-line, all is well.
If however ReadString() is used to read the whole file, flagged #PB_File_IgnoreEOL, the BOM is included in the String, which is a pity.
Edit: The solution is to use ReadStringFormat() first, which will move the file pointer behind the BOM if one is detected.
If ReadString() is used to read a file line-by-line, all is well.
If however ReadString() is used to read the whole file, flagged #PB_File_IgnoreEOL, the BOM is included in the String, which is a pity.
Edit: The solution is to use ReadStringFormat() first, which will move the file pointer behind the BOM if one is detected.