The Conroy & Conroy Subroutine Library (2021.3 edition)

Open_Text_File
What: integer
File: Basic_Files
Layer: 0
Platforms: C, C++, Pascal (All), PHP, Python
Format:
PSBasic_File Open_Text_File( const string Name, int Flags, int& Err )
function Open_Text_File( const Name : string ; Flags : integer ; var Err : integer ) : PSBasic_File
This function opens a file for text I/O. It returns an instance of the PSBasic_File class. If an open error occurs, the result is null and Err is set to the error result (see FErr_* constants). Note: the C version returns a FILE* value.