-1

我想遵循这个架构:

    //Read filename
    string filename; 
cout << "ONLY Name of the file you want to read, not directory: "; 
cin >> filename;

    //Find file in disk C and open it
    ifstream ifs(.................);
    while( int cc = FileRead( ifs, buff ) ) {
       etc. (trivial)
    }
4

1 回答 1

3
ifstream ifs(filename.c_str());

真的可以用谷歌搜索它......

于 2013-11-07T16:36:43.623 回答