Functions

Line Base Text File Load API
[Utilities]

Collaboration diagram for Line Base Text File Load API:

Functions

IUP_SDK_API IlineFile * iupLineFileOpen (const char *filename)
IUP_SDK_API void iupLineFileClose (IlineFile *line_file)
IUP_SDK_API int iupLineFileReadLine (IlineFile *line_file)
IUP_SDK_API const char * iupLineFileGetBuffer (IlineFile *line_file)
IUP_SDK_API int iupLineFileEOF (IlineFile *line_file)

Detailed Description

See iup_linefile.h

Function Documentation

IUP_SDK_API IlineFile* iupLineFileOpen ( const char *  filename  ) 

Opens an existing file. Returns NULL if failed.

IUP_SDK_API void iupLineFileClose ( IlineFile *  line_file  ) 

Closes the file.

IUP_SDK_API int iupLineFileReadLine ( IlineFile *  line_file  ) 

Reads a line from the file. Returns -1 if failed, otherwise returns the line size.

IUP_SDK_API const char* iupLineFileGetBuffer ( IlineFile *  line_file  ) 

Returns the buffer used to read the line.

IUP_SDK_API int iupLineFileEOF ( IlineFile *  line_file  ) 

Returns a non zero value if reached the end of the file.