Reading and Writing

Top  Previous  Next

What is translated > Reading and Writing

Delphi has Stream classes to read and write files similar to those in C#. But there are also an classic, non-object oriented Pascal routines for this purpose. For this classic approach there are three file types, which have no counterpart in C#

 

1.File;  declares an untyped file to read or write binary data
2.Text; declares a text file to read or write ASCII data
3.File of [type]; declares a typed file to read and write sequences of that type (records).

 

 

Delphi2Cpp provides the files d2c_sysfile.h/d2c_sysfile.cpp where these three file types are converted to C++ structures. d2c_sysfile also contains all the Delphi routines converted to C++ that are used to read and write to the console and to files by use of these file types.

 

d2c_sysfile is derived from the FreePascal library:

 

   http://www.freepascal.org/

 

FreePascal is published under the terms of GNU Lesser General Public License and therefore the same terms apply to d2c_sysfile..

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content