Date: Thu, 22 Apr 1999 12:01:07 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: DJ Delorie cc: djgpp-workers AT delorie DOT com Subject: Re: A workaround for Unix-style temporary files In-Reply-To: <199904211620.MAA01705@envy.delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 21 Apr 1999, DJ Delorie wrote: > > I don't know about Win9x and the DOS variants. > > They corrupt your hard drive if you try this. DOS could cause drive corruption, if the program continues to write after unlinking. Windows 9X is a bit smarter: it fails the `unlink' call, so the file is never removed (but at least your disk isn't toast), and if the program tests the return value, which most don't, you'll see an error message (EACCES, of course ;-).