Hi
i am working in Visual c++.i am a beginner in programming.
To read a .cfg file i am using ifstream class. If the.cfg file is opened for write mode in another applciation then when my application opens it for reading, the file should not be opened and application should terminate saying " file is used in another application".
How do i handle this exception.
is there any way i can solve this using CFile classes or any suggestions.
Thanks in advance.
i am working in Visual c++.i am a beginner in programming.
To read a .cfg file i am using ifstream class. If the.cfg file is opened for write mode in another applciation then when my application opens it for reading, the file should not be opened and application should terminate saying " file is used in another application".
How do i handle this exception.
is there any way i can solve this using CFile classes or any suggestions.
Thanks in advance.
Comment