#include <s32file.h>
| class RFileReadStream : public RReadStream |
| Public Member Functions | |
|---|---|
| RFileReadStream() | |
| RFileReadStream(RFile &, TInt) | |
| IMPORT_C void | Attach(RFile &, TInt) |
| IMPORT_C TInt | Open(RFs &, const TDesC &, TUint) |
Supports the reading of a stream from a file.
Constructs the read stream object, associates it with an already opened file, and prepares the stream for reading.
| Parameter | Description |
|---|---|
| aFile | A reference to the opened file. |
| aPos | The offset into the file from where the stream is to be read. Defaults to zero. |
Opens a file containing a stream and prepares the stream for reading.
The stream will be read from offset zero in the file.
See also: TFileMode
| Parameter | Description |
|---|---|
| aFs | Handle to a file server session. |
| aName | The full path name of the file. |
| aFileMode | The mode in which the file is to be accessed. The mode is defined by by the TFileMode type. |
Returns: KErrNone, if successful; otherwise, one of the other system wide eror codes.