Location:f32file.h Link against:efsrv.lib ClassRFile RFile SupportSupported from 5.0 DescriptionCreates and opens a file, and performs all operations on a single open file. These include:
Reading from and writing to the file
Seeking to a position within the file
Locking and unlocking within the file
Setting file attributes
Before using any of these services, a connection to a file server session must have been made and the file must be open. Opening Files:
UseOpen() To open an existing file for reading or writing-an error is returned if it does not already exist. To open an existing file for reading only, useOpen() With an access modeEFileRead And a share modeEFileShareReadersOnly .
UseCreate() To create and open a new file for writing-an error is returned if it already exists.
UseReplace() To open a file for writing, replacing any existing file of the same name if one exists or creating a new file if one does not exist,
UseTemp() To create and open a temporary file with a unique name, for writing and reading.
When opening a file, you must specify the file server session to use for operations with that file. if you do not close the file explicitly, it is closed when the server session associated with it is closed. Reading and Writing: There are several variants of bothRead() AndWrite() . The basicRead(TDes8& aDes) AndWrite(const TDesC8& aDes) Are supplemented by variants allowing the descriptor length to be overridden, or the seek position of the first byte to be specified, or asynchronous completion, or any combination. Reading transfers data from a file to a descriptor, and writing transfers data from a descriptor to a file. In all cases, the file data is treated as binary and byte descriptors are used (TDes8 ,TDesC8 ). Derivation
RSubSessionBase -Client-side handle to a sub-session
RFsBase -Base class that provides a Close () function for file related clean-up
RFile -Creates and opens a file, and performs all operations on a single open file
MembersDefined inRFile :
Att() ,ChangeMode() ,Create() ,Flush() ,Lock() ,Modified() ,Open() ,Read() ,Read() ,Read() ,Read() ,Read() ,Read() ,Read() ,Read() ,Rename() ,Replace() ,Seek() ,Set() ,SetAtt() ,SetModified() ,SetSize() ,Size() ,Temp() ,UnLock() ,Write() ,Write() ,Write() ,Write() ,Write() ,Write() ,Write() ,Write() Inherited fromRFsBase :
Close() Inherited fromRSubSessionBase :
CloseSubSession() ,CreateSubSession() ,Send() ,SendReceive() ,SubSessionHandle() ,operator=() |