I tried with bellow source, but failed....
procedure TForm1.Button1Click(Sender: TObject);
var
F : TextFile;
ch : char;
str : string;
begin
AssignFile(F, 'test.sql'); //file generate from (enteprice manager sql -> generate script)
reset(F); //Open F
while not EOF(F) do //Keeps reading each character until EOF (End Of File)
begin
read(F, ch);
str := str + ch;
end;
CloseFile(F); //Closes F
memo1.Text := (str); //Places the read text in variable str in memo2
end;
so, how to read the file with international text(unicode) format.
thanks