0. You can find related streaming-related examples in Examples\SysLibs (Streaming, Streams, but you may want to check Stores, perhaps FileStores too)
1+2. It is also an option to simply create a T-class (or struct) for your settings:
Code:
class TMySettings
{
public:
TBuf<32> iMyString;
TBool iMyBool;
TInt iMyNumber;
};
Then if you have a variable of TMySettings "settings", you can write it to "myFile" as
Code:
TPckg<TMySettings> settingspackage;
myFile.Write(settingspackage);
and read it back
Code:
TPckg<TMySettings> settingspackage;
myFile.Read(settingspackage);
3. If you already know the name of a class - which is quite probable, otherwise you could not use it -, you can simply search for it in the SDK Help. For example RFile:

Originally Posted by
SDK Help
» Symbian OS v9.2 » Symbian OS reference » C++ component reference » Base F32 » RFile
--------------------------------------------------------------------------------
Location: f32file.h
Link against: efsrv.lib
Class RFile
class RFile : public RSubSessionBase;
Description
Creates and opens a file, and performs all operations on a single open file.
These include:
...
So you will find the necessary headers and libraries in the documentation.