2003-02-14 18:17:17 +00:00
|
|
|
#ifndef __ruamoko_qfile_h
|
|
|
|
#define __ruamoko_qfile_h
|
|
|
|
|
2010-01-13 06:34:32 +00:00
|
|
|
struct _qfile_t {};
|
2011-02-07 13:16:16 +00:00
|
|
|
typedef struct _qfile_t *QFile;
|
2003-02-14 18:17:17 +00:00
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern int Qrename (string old, string new);
|
|
|
|
@extern int Qremove (string path);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern QFile Qopen (string path, string mode);
|
|
|
|
@extern void Qclose (QFile file);
|
|
|
|
@extern string Qgetline (QFile file);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern string Qreadstring (QFile file, int len);
|
|
|
|
@extern int Qread (QFile file, void *buf, int count);
|
|
|
|
@extern int Qwrite (QFile file, void *buf, int count);
|
|
|
|
@extern int Qputs (QFile file, string str);
|
|
|
|
//@extern int Qgets (QFile file, void *buf, int count);
|
|
|
|
@extern int Qgetc (QFile file);
|
|
|
|
@extern int Qputc (QFile file, int c);
|
|
|
|
@extern int Qseek (QFile file, int offset, int whence);
|
|
|
|
@extern int Qtell (QFile file);
|
|
|
|
@extern int Qflush (QFile file);
|
|
|
|
@extern int Qeof (QFile file);
|
|
|
|
@extern int Qfilesize (QFile file);
|
2003-02-14 18:17:17 +00:00
|
|
|
|
|
|
|
#endif//__ruamoko_qfile_h
|