company logo

TextFile :: read - Read number of bytes from file

The function allows reading a iLength of bytes from text file. When no length is passed ( iLength =0), the remaining part of the file is read. Data read from the file will be returned in a string.

The function is supported for simple text processing, only. When calling the function for any other kind of text processing or when an error occurred while reading the file, the function throws an exception.

Return value:  String value ( odaba::String & )

Implementation details

odaba::String TextFile  :: read ( int32 iLength )
  • iLength - Length

    The length is the size allocated for an instance or area.