#include <iostream>
#include <fstream>
#include "TCHAR.H"//支持宽字符串
using namespace std;
void main()
{
ifstream in(_T("C:\\Documents and Settings\\yumenglin\\桌面\\新建 文本文档.txt"));//_T()的使用
if(in.is_open())cout<<"open"<<endl;
char ch;
in>>ch;
cout<<ch<<endl;
}
在vc6.0中可以用