[fpc-pascal] Concatenating CP Strings

Martok listbox at martoks-place.de
Sat Sep 15 22:12:52 CEST 2018


And another one:

var
  f: TextFile;
  s: string;
begin
  AssignFile(f, 'a_file.txt');
  SetTextCodePage(f, 866);
  Reset(f);
  ReadLn(f, s);
  WriteLn(StringCodePage(s));
  readln;
end.

That is rather useless...


Writing anything into the specified codepage works perfectly fine.


-- 
Regards,
Martok




More information about the fpc-pascal mailing list