Thread: ifstream::open ??

  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
Website Security Test