C++ file handling

Hi,
I am using std::fstream for file for manipulating the file.

Is there any way by which I can set that file attribute such that no other process can open that file. Just like win32 API provides.

Thanks!
Vivek
That's a feature of the OS so to actually lock out access from other processes you need to talk to the OS with it's API. You could read your file into memory and work with that before spitting out the results.

Just curious but did this come up because of over zealous Antivirus scans?
Topic archived. No new replies allowed.