With .Net 2003, fstream.h disappeared and the open command went from three parameters to two.
How do I now open a file and deny other applications from accessing the file until I am done writing to it? I used to be able to do:
Is there another way to do this, or am I out of luck?Code:fstream outf("somefile.txt",ios::app,filebuf::sh_none);




Reply With Quote