In my program I did the following:
begin
if not OpenDialog1.Execute then Exit;
Memo1.Clear;
AssignFile(MyFile,OpenDialog1.FileName);
Reset(MyFile);
while not EOLN(MyFile) do
begin
Read(MyFile,Text1);
Memo1.Lines.Add(Text1);
end;
closeFile(MyFile);
end;
Can any one help me to write each word from the text file word by word in the memo.
Regards,
NOna