file of X types are block based files (even if the block size is 1 if you use
Char or
Byte). For these the concept of code pages is not relevant. So either use
TextFile or read the string data and then use
SetCodePage(yourstr, yourcp, False) which will set the code page without converting the string.