company logo

FileHandle :: Read - Read file

The function reads the file (or the part of the file limited by max_len) and returns the file content in a string. The function is intended to be called for reading ASCII files, only.

FileHandle       fh;

// C++

fh.Read(result_string,100);

// OSI

result_string = fh.Read(100);

Notes:

In contrast to the C++ implementation, the OSI function only gets the length (or none) parameter.

Return value:  String object ( NString & )

Implementation details

const NString & FileHandle  :: Read ( NString &nstring, int32 max_len )
  • nstring - String object
  • max_len - Maximum length