相关函数:
int open(char *pathname, int access[, int permiss]); 打开一个文件用于读或写
int chsize(int handle, long size); 改变文件大小
long tell(int handle); 取文件指针的当前位置
int write(int handel, void *buf, int nbyte); 写到一文件中
long lseek(int handle, long offset, int fromwhere); 移动文件读/写指针
int close(int handle); 关闭文件句柄