Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: f32file.h
Link against: efsrv.lib

Class RFsBase

RFsBase

Support

Supported from 5.0

Description

Base class that provides a Close() function for file related clean-up. The class is a base class for:

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.

Derivation

RFsBaseBase class that provides a Close() function for file related clean-up
RSubSessionBaseClient-side handle to a sub-session

Defined in RFsBase:
Close()

Inherited from RSubSessionBase:
CloseSubSession(), CreateSubSession(), Send(), SendReceive(), SubSessionHandle(), operator=()


Closing a file


Close()

void Close();

Description

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.