input a filename into a stream while file manipulation

How can i input a filename when the program asks for the specific filename that is in another folder?
i cannot provide this:/home/user/cpp/filename.ext
and display error as file cannot be created as i coded for errorhandling as it is...
Any solution?
Topic archived. No new replies allowed.