FILE *fp = fopen("file","rb")
char *p = node->data
while(!feof(fp))
*p++ = fgetc(fp)
fclose(fp)
//**********************以上读*******************
FILE *fp = fopen("file","wb")
char *p = node->data
while( p <node->data+len)
fputc(fp,*p++)
fclose(fp)
//**********************以上写*******************
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)