?
Solved

Newbie Delphi File Question

Posted on 2004-10-26
3
Medium Priority
?
203 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
Comment
Question by:instant_new
  • 2
3 Comments
 
LVL 7

Assisted Solution

by:LRHGuy
LRHGuy earned 80 total points
ID: 12412224
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:
esoftbg earned 120 total points
ID: 12412233
0
 
LVL 7

Expert Comment

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

594 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