要读/写文件,我需要 Unix 环境中 C 语言的文件指针。 我知道文件名和路径,但如何使用其名称和路径获取文件指针。
最佳答案
#include <stdio.h>
FILE * pFile;
pFile = fopen ("myfile.txt","w");
关于c - 如何获取特定路径中已知文件的文件指针( FILE* )?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18439972/