|
-
Mar 27th, 2003, 02:31 PM
#1
Thread Starter
Lively Member
fstream
is there way to retreive the file name from this:
Code:
ifstream f ("test.txt");
here, how can i retreive the filename of the opened file?
thanks
-
Mar 27th, 2003, 03:28 PM
#2
You can't. Why would you want to?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 27th, 2003, 03:34 PM
#3
Thread Starter
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|