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);

	}

你可能感兴趣的:(Opera)