D
Dave Reid
Hi everyone...
I'm trying to open a text file in exclusive mode (meaning I want to
lock out any other processes from accessing the file while I'm working with
it).
Here's my code:
ifstream fs_infile("field_summary.dat", filebuf::sh_none)
And I get the following error:
'sh_none' is not a member of type 'filebuf'
What am I doing wrong? Is this the right way to do this? Or is
there a better way to do this file locking?
Thanks in advance...
Dave Reid
I'm trying to open a text file in exclusive mode (meaning I want to
lock out any other processes from accessing the file while I'm working with
it).
Here's my code:
ifstream fs_infile("field_summary.dat", filebuf::sh_none)
And I get the following error:
'sh_none' is not a member of type 'filebuf'
What am I doing wrong? Is this the right way to do this? Or is
there a better way to do this file locking?
Thanks in advance...
Dave Reid