file operation

	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);
	}
原文地址:https://www.cnblogs.com/zhoug2020/p/2545537.html