title: Using std:fstream how to deny access (read and write) to the file
body: <p>How can I deny access to a file I open with fstream? I want to unable  access to the file while I'm reading/writing to it with fstream?</p>