Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

protect an open file from other read/writes

Status
Not open for further replies.

biot023

Programmer
Nov 8, 2001
403
GB
Hallo - does anybody know how I can protect a file I've opened with an ifstream or ofstream from anybody else reading from it or writing to it?
I thought there was a protect mode you could specify when you called the constructor, but so far I have found nothing.
Any & all help, as ever, is very appreciated.
Cheers,
Douglas JL Common sense is what tells you the world is flat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top