On Tue, 11 Oct 2005 14:26:50 -0700, "Jeff" <ffej2ffej@[EMAIL PROTECTED]
>
wrote:
>I wanted this to be a console application. Since I need to include a
>component that retrieves e-mail (NMPOP3), I had to make it a GUI
>application.
If all you are doing is fetching pop email, and writing it to a file,
then you don't need a GUI.
>Now, I want to write the results to a text file. Of course,
>I cannot open a text file in a GUI application.
Yes, you can.
>Give me a break! Why is everything mutually exclusive like this?
It is not mutually exclusive.
>What am I going to have to do in order to make a GUI application write to
a text file?
var
F : Text;
begin
AssignFile(F,'myfile.txt');
Rewrite (F);
Writeln(F,'Put this text in the text file');
CloseFile(F);
end;
Use Reset(F) instead of Rewrite(F); if appending to an existing file.
What is so difficult about that?


|