Subject: | |
From: | |
Reply To: | |
Date: | Tue, 1 May 2001 15:57:53 +0100 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Good afternoon all.
Is there a combination of Aoptions (etc) that allows me to open a file in both shared mode access whilst at the same time erasing the contents of the file.
(My problem is that I've got a file open by several processes in read-only (shared) mode, but I then want to very quickly erase the data in that file from another process using the Aoption=1, but for this erase process to also use Shared mode - so that it can run alongside the readers of the file).
Now if the erase process is the only process accessing the file, then the file gets erased OK, but if there are other "readers" then the current contents of the file do NOT get erased. What's also odd is that I also cross check the Aoptions granted to the process (using FFileInfo) and it would appear that I've been given Aoption=1.
I could turn shared mode off, but, the crux of my problem is that I can't appear to be able to confirm that the file was erased correctly using the standard file intrinsics (FFileinfo) which appears to be telling me that I got Aoption=1, but does not warn me that it couldn't resett the EOF back to zero.
Many thanks.
Tony S.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|