Location:
f32file.h
Link against: efsrv.lib
RFsBase
Supported from 5.0
Base class that provides a Close() function for file related clean-up. The class is a base class for:
RFile
RDir
RFormat
It is good practice to close all resources owned by instances of the derived classes immediately after operations on them have finished. Failure to do so means that these resources remain allocated until the owning thread terminates.
This class is not for direct application program use.
|
Defined in RFsBase
:
Close()
Inherited from RSubSessionBase
:
CloseSubSession()
,
CreateSubSession()
,
Send()
,
SendReceive()
,
SubSessionHandle()
,
operator=()
void Close();
Closes the file or directory. Any open files are closed when the file server session is closed.
Close()
is guaranteed to return, and provides no
indication of whether it completed successfully or not. When closing a file
that you have written to, you should ensure that data is committed to the file
by invoking RFile::Flush()
before closing. If Flush()
completes successfully, Close()
is essentially a
no-operation.