C++ 读取文件内容至当前文件长度的字符串中

在C中,读取文件内容t一般时使用字符数组char[ ]保存。html 例如:ios FILE *html; char tmpChar; char htmlText[2000000]; char *p; memset(htmlText,0,2000000); p=htmlText; html = fopen(path.c_str(),"r"); if(html){ while((t
相关文章
相关标签/搜索