[fpc-pascal] File handling: the TFileStream or the classical way is faster and more efficient?

Géza Kovacs Géza kg0231 at gmail.com
Mon May 25 11:53:29 CEST 2015


Thx your answer.

Can I use the "AssignFile" procedure from the SysUtils unit instead of
the simple assign procedure from the System unit?
What is the problem with the simple "assign"?

I read from the Free Pascal Wiki:
AssignFile (prevent the use of the older Assign procedure) - Assign a
name to a file

CloseFile (prevent the use of the older Close procedure) - Close opened file

What is the difference between simple "assign", "close", or
"AssignFile", and "CloseFile"?

Best regards, G

More information about the fpc-pascal mailing list