Solved

working with files

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

Independent Software Vendors: 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

Suggested Solutions

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…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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