GLUS
Functions
glus_file_text.h File Reference

Go to the source code of this file.

Functions

GLUSAPI GLUSboolean GLUSAPIENTRY glusFileLoadText (const GLUSchar *filename, GLUStextfile *textfile)
 Loads a text file. More...
 
GLUSAPI GLUSboolean GLUSAPIENTRY glusFileSaveText (const GLUSchar *filename, const GLUStextfile *textfile)
 Saves a text file. More...
 
GLUSAPI GLUSvoid GLUSAPIENTRY glusFileDestroyText (GLUStextfile *textfile)
 Destroys the content of a text structure. More...
 

Function Documentation

GLUSAPI GLUSvoid GLUSAPIENTRY glusFileDestroyText ( GLUStextfile textfile)

Destroys the content of a text structure.

Has to be called for freeing the resources.

Parameters
textfileThe text file structure.
GLUSAPI GLUSboolean GLUSAPIENTRY glusFileLoadText ( const GLUSchar filename,
GLUStextfile textfile 
)

Loads a text file.

Parameters
filenameThe name of the file to load.
textfileThe structure to fill the text data.
Returns
GLUS_TRUE, if loading succeeded.
GLUSAPI GLUSboolean GLUSAPIENTRY glusFileSaveText ( const GLUSchar filename,
const GLUStextfile textfile 
)

Saves a text file.

Parameters
filenameThe name of the file to save.
textfileThe structure with the text data.
Returns
GLUS_TRUE, if saving succeeded.