Solved

working with files

Posted on 2000-02-14
2
191 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

707 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

16 Experts available now in Live!

Get 1:1 Help Now