Solved

working with files

Posted on 2000-02-14
2
192 Views
Last Modified: 2010-04-04
how to assign file,read from filr,write to file,delete file,create file in delphi 3 or 4
                         M@rko
0
Comment
Question by:marko_svaljek
2 Comments
 

Author Comment

by:marko_svaljek
ID: 2519576
Adjusted points to 75
0
 

Accepted Solution

by:
Dmitry_ earned 70 total points
ID: 2519723
You can do it using the system functions: AssignFile, Reset and CloseFile
var
F:TextFile;
S:string;
....
AssignFile(F, 'Name.txt');
Reset(F);
ReadLn(F, S); //reading the string, for write to file use WriteLn
CloseFile(F);
See the delphi help for detals
For deleting file use:
DeleteFile('Name.txt');


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to add Windows metadata to a text file programmatically with Delphi? 3 170
indy tidtcpclient threading issue 8 63
PDF library for Delphi 2 107
Working with hours 3 46
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

22 Experts available now in Live!

Get 1:1 Help Now