re_openimagefile(), re_wopenimagefile()

extern ReFileHandle KADMOS_API re_openimagefile
  (const char *file_title, const char *mode);

extern ReFileHandle KADMOS_API re_wopenimagefile
  (const wchar_t *file_title, const char *mode);
      

Parameter:

file_title
Title of the image file to be opened.
mode
mode can be filled as follows:
r Open file to read
w Open a file to write
a Open file to continue writing.

Return value:

Handle of the file, NULL in case of error.

Comment:

ReFileHandle is defined as void *. With these two functions will be an image file open. If the file is to be opened for reading, occupy mode with "r". For writing occupy mode with "w". If the file is to be continued set mode with "a".

Reference: