Wednesday, February 3, 2016

Novice, about RFileWriteStream




            


I modified it button
respond to events in the HELLOWORLDBASIC example S60_3rd_FP1TInt want a written Hello.txt, the file in Epoc32 \ winscw \ c \ private
_LIT (KHelloFileName, "Hello.txt"); // this is put together and include

Rfs fe;
RFile rfile;
User :: LeaveIfErroe (fe.Connect ());
CleanupClosePushL (fe);
User :: LeaveIfErroe (rfile.Open (fe, KHelloFileName, EFileShareAny);
CleanupClosePushL (rfile);
TInt aa = 12312;
RFileWriteStream out (rfile);
CleanupClosePushL (out);
out.WriteInt32L (aa);
CleanupStack :: PopAndDestroy (4, & amp; fe);

But nothing is written after running txt file
Reply:
After writing about the call RFileWriteStream :: CommitL ()

Reply:
Function is RFile :: open question, I put the last parameter to EFileWrite on it, but I put aa initialized to 21, written in txt becomes a black box, with ue open display is 15,000,000 Results seems wrong ah, neighborhoods!

No comments:

Post a Comment