#include
#include
#include
#include
#include
#include
int main(int argc, char **argv)
{
gzFile mygzfp;
FILE *fd;
int i;
float obj;
mygzfp = gzopen(argv[1], "w");
fd = fopen("test", "r");
for(i=0;i<3600;i++) {
fread(&obj, sizeof(float), 1, fd);
gzwrite(mygzfp, &obj, sizeof(float));
}
gzclose(mygzfp);
return 0;
}
阅读(552) | 评论(0) | 转发(0) |