×
Namespaces

Variants
Actions
(Difference between revisions)

How to use RFileWriteStream

From Nokia Developer Wiki
Jump to: navigation, search
savaj (Talk | contribs)
lpvalente (Talk | contribs)
m
Line 1: Line 1:
 +
[[Image:More_work_needed.gif]]
 +
 +
 
<code cpp>
 
<code cpp>
 
TInt16 someInt;
 
TInt16 someInt;
Line 9: Line 12:
 
writerStream.Release();
 
writerStream.Release();
 
</code>
 
</code>
 +
 
[[Category:Symbian C++]]
 
[[Category:Symbian C++]]

Revision as of 01:57, 11 March 2009

File:More work needed.gif


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();
68 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×