PWB Extensions Help (ext.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
RemoveFile
◄Up► ◄Contents► ◄Index► ◄Back►
─────PWB Extensions─────────────────────────────────────────────────────────
Syntax: flagType RemoveFile( PFILE pfFile );
Returns: True if successful, otherwise false.
See: DelFile, fChangeFile, FileNameToHandle, FileRead, FileWrite,
fSetWindowWithFile, GetPfileFromName, pFileToBottom,
pFileToTop, RemoveFile, ◄Using Files►
RemoveFile closes the file specified by <pFile> by removing the
file buffer and all its data from memory.
RemoveFile is the opposite of AddFile. AddFile initializes a new
buffer; RemoveFile deletes an existing buffer. RemoveFile does not
force the writing of the file buffer to disk. You should always do
a FileWrite before doing a RemoveFile unless you want to discard
any modifications done to the file.
NOTE: RemoveFile does not delete the file from disk. It only
cancels the knowledge PWB has of the file.
-♦-