×
Namespaces

Variants
Actions
(Difference between revisions)

How to use RFileWriteStream

From Nokia Developer Wiki
Jump to: navigation, search
VaradiZsolt (Talk | contribs)
m
savaj (Talk | contribs)
Line 9: Line 9:
 
writerStream.Release();
 
writerStream.Release();
 
</code>
 
</code>
 +
[[Category:Symbian C++]]

Revision as of 08:19, 10 March 2009

TInt16 someInt;
RFileWriteStream writerStream;
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.WriteInt16L(someInt);
writerStream.CommitL();
writerStream.Pop(); // writerStream
writerStream.Release();
74 page views in the last 30 days.
×