is there way to retreive the file name from this:
here, how can i retreive the filename of the opened file?Code:ifstream f ("test.txt");
thanks
Printable View
is there way to retreive the file name from this:
here, how can i retreive the filename of the opened file?Code:ifstream f ("test.txt");
thanks
You can't. Why would you want to?
well..i have a function that receives the name of a file..i use this to initilaze a stream, and then later on, instead o using the passed value i wanted to retreive it from the stream...but indeed taht is useless..i'll just use the passed value