Hello,
I have just started using Delphi and ran into a small problem. It's a simple app, as I am only practicing. It has a Button and 2 Edit boxes. I want the user to enter some text to be saved (in a .txt file) in Edit1 and choose a filename by typing it into Edit2.
Heres my code:
var
F: TextFile;
begin
AssignFile(F, 'C:\XXXXX.txt');
Rewrite(F);
WriteLn(F, Edit1.Text);
CloseFile(F);
end;
How would I tell the app to save the name as the content of Edit2?