Solved

Newbie Delphi File Question

Posted on 2004-10-26
195 Views
Last Modified: 2010-04-05
in VB there are two ways to write a file (more but Im conserned in two)
Open FILE For Append as #1 >> Dont overwrite file
Open FIle For Output as #1 >> Overwrite file
how to write each in delphi?

also, there are Print and Write
I use Write for alot, when I input the info, its in arrays

Open FILE For Append as #1
'LOOP COMMAND
Write #1, bla(x), blo(x)
'LOOP COMMAND
CLOSE #1

anyway, how to do that in delphi?

and just a very quick question
what is
Form1.Hide
Form1.Show
0
Question by:instant_new
    3 Comments
     
    LVL 7

    Assisted Solution

    by:LRHGuy
    var F:textfile;

    Assign(F,'filename');

    // select one of these...
    //reset(F);  //open file to replace
    //append(F); //open file to append

    repeat
    writeln(F,bla(x),blo(x));
    until done;

    close(F);

    0
     
    LVL 12

    Accepted Solution

    by:
    0
     
    LVL 7

    Expert Comment

    by:LRHGuy
    form1.hide    // Hides the form referenced by form1
    form1.show  // Shows the form
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    3 Experts available now in Live!

    Get 1:1 Help Now