摘要: #include "stdio.h"#include "malloc.h"#include sys/stat.h//获取文件大小long GetSize(char* path){ //第一种方法获取文件大小 long currentPosition; long size; FILE *fp; fp=fopen(path,"rb"); /* Save the current position. */ currentPosition = ftell(fp); /* Jump to the end of the file. */ fseek( fp, 0L, SEEK_END ); / 阅读全文
posted @ 2010-09-14 23:15 再快一点 阅读(256) 评论(0) 推荐(0) 编辑