解决C++ fopen按行读取文件及所读取的数据问题
1、已有文本文件:
stringdataList;
使用fopen读取:
FILE*fpListFile=fopen(dataList.c_str(),"r"); if(!fpListFile){ cout<<"0.can'topen"<
1、已有文本文件:
stringdataList;
使用fopen读取:
FILE*fpListFile=fopen(dataList.c_str(),"r"); if(!fpListFile){ cout<<"0.can'topen"<