Hi,
I want to open a file ( say "test.cpp"), only if it doesnt exist in the folder that has the Program.
If it already exists, I want to quit....
I dunno how to do this...
Can anyone help me...plz..
thanks in advance..
-Naren
This is a discussion on Doubt in file operations... within the C++ Programming forums, part of the General Programming Boards category; Hi, I want to open a file ( say "test.cpp"), only if it doesnt exist in the folder that has ...
Hi,
I want to open a file ( say "test.cpp"), only if it doesnt exist in the folder that has the Program.
If it already exists, I want to quit....
I dunno how to do this...
Can anyone help me...plz..
thanks in advance..
-Naren
Oh indeed, and do you want it for C or C++ since you've posted in both sections?
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
Solution in any language(C or C++) is fine for me...