ifstream::open ??

This is a discussion on ifstream::open ?? within the C++ Programming forums, part of the General Programming Boards category; ok if i read in a filename into a char string and then i want to open that file how ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    11

    ifstream::open ??

    ok if i read in a filename into a char string and then i want to open that file how would i do that???
    i can't figure it out :P
    ...

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    ifstream

    char filename[] = "somefile.txt";

    ifstream fin( filename );


    fin >> .... insert code here to read in file....
    zMan

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21