Results 1 to 3 of 3

Thread: fstream

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    112

    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

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    112
    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
  •  



Click Here to Expand Forum to Full Width