FILE* fp;
if((fp=_wfopen(L"turk2.txt", L"r,ccs=UNICODE"))!=NULL)
{
fseek(fp,0,SEEK_END);
long len = ftell(fp);
fseek(fp,0,SEEK_SET);
wchar_t *temp = new wchar_t[len];
memset(temp,0,len);
fread(temp,sizeof(wchar_t),len,fp);
AfxMessageBox(temp);
delete [] temp;
fclose(fp);
}file operation
原创
©著作权归作者所有:来自51CTO博客作者躬行之zhi的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Python & file operation mode
Python & file operation modecreate/read/write/append mode
mode Python file python -
企业级应用架构详解
企
架构 微服务 解耦 数据库
















