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
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 ...
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
...
char filename[] = "somefile.txt";
ifstream fin( filename );
fin >> .... insert code here to read in file....
zMan