c语言要修改或者读取、更改txt的话,真的须要好好看下代码

在C语言中写文件 //获取文件指针 FILE *pFile = fopen("1.txt", "w"); fwrite ("hello",1,strlog("hello"), pFile); fflush(pFile); 在C语言中读文件 FILE *pFile=fopen("1.txt","r"); char *pBuf; fseek(pFile,0,SEEK_END); int le
相关文章
相关标签/搜索