hi all
i am trying load file after it created from /stext command line but its not loading up
my code
ShellExecute(0, nil, PChar(path+'test.exe'), PChar('/stext "' + path + 'save.txt"'), nil, SW_HIDE);
after it created file i tried to load to memo1 from another button click
like
procedure TForm1.Button2Click(Sender: TObject);
begin
Memo1.Lines.LoadFromFile(path+'save.txt');
end;
but its loading some unknown 3 characters
ÿþ=
P.S : I opened manually it has real data of 30 lines :)
why its happening ?
and one more thing is after i executed my first command shellexecute how i know that the file creation is done to load to my memo in same function without using sleep function :S
thanks in advance
regards