(Difference between revisions)
How to use RFileWriteStream
From Nokia Developer Wiki
Revision as of 15:53, 2 April 2009
Following article shows how to use RFileWriteStream to write stream to a file.
#include <s32file.h> //RFileWriteStream
#include <f32file.h> //RFs
LIBRARY estor.lib //RFileWriteStream
LIBRARY efsrv.lib //RFs
writerStream.PushL(); // writerStream on cleanup stack
User::LeaveIfError(writerStream.Create(fs, fileName, EFileWrite)); //fs is ur file session and fileName is name of ur file.
writerStream.Pop(); // writerStream