T
tlmseven
I'm writing a simulator for my Comp Arch class, and I'm a bit rusty on
my C++ so I was wondering if anyone could help me out.
We know that, when using ifstream to open a file for input, a file is
created by default if the specified filename in
ifstream("somefilename") does not exist.
How does one disable this default feature so that the program only
opens a file that does exist?
Thanks to those of you who are willing to help.
my C++ so I was wondering if anyone could help me out.
We know that, when using ifstream to open a file for input, a file is
created by default if the specified filename in
ifstream("somefilename") does not exist.
How does one disable this default feature so that the program only
opens a file that does exist?
Thanks to those of you who are willing to help.