Solved

working with files

Posted on 2000-02-14
2
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month4 days, 13 hours left to enroll

635 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