I'm doing a program in Delphi, writing in all kinds of files, either text or executable:
var
openfile: TextFile;
begin
AssignFile(openfile, 'test.exe');
Append(openfile);
WriteLn(openfile,'[test]hi world[test]');
CloseFile(openfile);
end;
How can I improve this?