I take it you mean that filebuf::sh_none is not guaranteed to open the file in "exclusive mode" - which is what is required for this to work.
--
Mats
Printable View
Thanks Bubba,
What is your proposed solution if you do not propose to use ifstream below?
Hi Mats,
I think it is guaranteed. Here is what MSDN said,
http://msdn2.microsoft.com/en-us/lib...33(VS.60).aspx
--------------------
filebuf::sh_none Exclusive mode — no sharing.
--------------------
Any comments?
regards,
George