C++ 文件操作

Posted on 2015-06-21 13:44  Bing_Lee  阅读(185)  评论(0)    收藏  举报
#include <fstream>
#include <iostream>

int main(int,char**){
    ifstream input("input.txt");
    char c;
    while (!input.eof()){
        input >> c;
        cout << c << endl;
    }
    input.close();
    while (1){}
    return 0;
}

读取中文字符