Template Function sdkReadFile#

Function Documentation#

template<class T>
inline bool sdkReadFile(const char *filename, T **data, unsigned int *len, bool verbose)#

Read file \filename and return the data

Parameters
  • filename – name of the source file

  • data – uninitialized pointer, returned initialized and pointing to the data read

  • len – number of data elements in data, -1 on error

Returns

bool if reading the file succeeded, otherwise false