From: "Damien" Newsgroups: comp.os.msdos.djgpp Subject: C++ file sharing Date: 1 Sep 1997 01:48:23 GMT Organization: Beyond Reality Lines: 16 Message-ID: <01bcb678$a94da4e0$548562cf@damien> NNTP-Posting-Host: phx-ts19-19.goodnet.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hey everyone. I'm trying to figure out how to format my fstream-style open statements to implement some file protection. Under MSVC++ I could do it like this: infile.open("filename.ext", ios::in | ios::binary, filebuf::sh_read); to allow read-only access while I have it open. From grepping the header files, DJGPP has a filebuf class. I must be using it wrong, though. I'd appreciate any help I can get on this. -- -=Damien=- damien@%poe.org ( remove the % to reply... no spambots allowed) http://www.goodnet.com/~ej70339/