stdio.h
int feof(FILE *stream)
遇到文件结尾则返回1,否则返回0
int fseek(FILE *stream, long offset, int origin)
把文件定位器移动offset个字节的位置,origin是指定的起始点(SEEK_SET,SEEK_END),若操作成功则返回0,否则返回非零值
long ftell(FILE *stream)
返回目前文件流的工作位置,其位置是相对于stream起始位置的偏差量而言。若执行失败则返回-1L
void rewind(FILE *stream)
把文件定位器移到文件开头的地方
int sprintf(char *buffer, const char *format[, argument] ...)
把格式化的数据写到字符串,返回在buffer里面的字节数
int sscanf(const char *buffer, const char *format[, argument] ...)
从字符串里读出相应格式的数据
int rename(const char *oldname, const char *newname)
重命名一个文件,成功返回0
int remove(const char *path)
删除文件(指向该文件的文件句柄必须关闭),成功返回0