Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

working with files

Posted on 2000-02-14
2
Medium Priority
?
202 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 210 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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 this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

722 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