Talk About Network

Google





Programming > Pascal Delphi Components Usage > Re: console vs ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 168 of 175
Post > Topic >>

Re: console vs GUI

by Noel <nobody@[EMAIL PROTECTED] > Oct 29, 2005 at 02:02 PM

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?
 




 3 Posts in Topic:
console vs GUI
"Jeff" <ffej  2005-10-11 14:26:50 
Re: console vs GUI
David Zimmerman <dzimm  2005-10-13 18:53:26 
Re: console vs GUI
Noel <nobody@[EMAIL PR  2005-10-29 14:02:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 20:42:06 PST 2009.