This page was last modified 13:16, 8 December 2007.
Using File Server Handle provided by Application Framework.
From Forum Nokia Wiki
The Control Environment (CONE), which forms part of the application framework for UI applications, provides a permanent handle to the File Server to help reduce the number of connected File Server Sessions needed.
You don’t need to open a file server session, since the control environment already has an open RFs, to access it, we need to invoke FsSession() on the iCoeEnv member of the View class.
RFs aFs = iCoeEnv->FsSession(); RFile file; TInt iErr; iErr = file.Open(aFs,aFilename,EFileRead) ; if( iErr == KErrNone) { // Do Something... } file.Close();
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| There's no icon for my app before restarting N6600 | kuisti | General Symbian C++ | 20 | 2005-04-16 10:15 |
| Internals of File Operations | savvy | General Symbian C++ | 4 | 2007-08-17 09:43 |
| To handle volume keys in my application | ppreethijain | Mobile Java General | 3 | 2007-02-28 02:36 |
| Multiple resource files | andrzej.jozwiak | Symbian User Interface | 3 | 2007-09-11 09:37 |
| help,将程序送到后台运行时遇到的问题 | gonglh | Symbian | 6 | 2005-11-11 13:37 |
