Reading and writing text files
Text files are the 'lowest common denominator' of all computer files. They can't contain formatting information such as fonts, bold or underline, instead they just contain ASCII representation of text characters.
Steps to open and read a text file in Delphi
First, make sure the file is there and in a location that you can access it. It should be possible to read a text file from the directory in which your program is running, but this isn't easy. Better to give it a full path like the path name shown on the right:
Errors that you might encounter
I/O 103 - File not found - have you got the name right?
I/O 104 - File not open for input - Have you 'Assigned' it?
I/O 32 - File in use by another process - Is it open somewhere else?