File needs to be closed on Windows but not on Posix, bug?

Regan Heath via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 7 07:25:52 PDT 2014


On Mon, 07 Jul 2014 15:18:51 +0100, Jesse Phillips  
<Jesse.K.Phillips+D at gmail.com> wrote:

> On Monday, 7 July 2014 at 12:00:48 UTC, Regan Heath wrote:
>> But!  I agree with Adam, leave it as a thin wrapper.  Being a windows  
>> programmer by trade I would expect the remove to fail, I would not  
>> expect all my files to be opened with delete sharing enabled by default.
>>
>> R
>
> And I believe behavior is still different. In Linux an open file can be  
> accessed even after a delete operation (unlink). But in Windows is that  
> possible?

Not sure, I've never done this.  It's just not something you would  
typically want/try to do on windows.

If I had to guess, I would say it would still be possible to access the  
file.

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d-learn mailing list