This topic describes the interface used to create, open, read from and write to a single file.
The RFile interface is used to create, open, read from and write to a single file.
A common pattern is to attempt to open an existing file, without replacing its existing data, and create it if it does not exist.
Use Open() to open an existing file for reading or writing - an error is returned if it does not already exist.
Use Create() to create and open a new file for writing.
Use various flags to specify how a file is opened.
// Open a file as text, writable, and shared with other clients RFile file; _LIT(KFileName, "FILENAME.CPP"); file.Open(fsSession,KFileName,EFileStreamText|EFileWrite|EFileShareAny);
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.