Saving the contents of Edit1.Text to File
Posted on 1998-08-27
I'm trying to save the contents of a EditBox (or Memo) to a file using TFileStream, but don't work. Example:
Arq := TFileStream.Create ('test.dat', fmCreate);
Cool := Edit1.Text;
Arq.Write (Cool, Length(Cool));
Well, when I open that file, there's not my text on it, just weird characters. How can I work it out?
Any king of help will be great!
Thank's a lot!