Wednesday, February 3, 2016
About Flow
When Hello World to write txt file with the RFileWriteStream, becomes 0Hello World, then RFileReadStream reads:
RFileReadStream in (rFile);
HBufC * fileData = HBufC :: NewLC (in, 32);
Hello World to the screen or play no more 0,
Now all characters to a txt file is read into memory (no need to show on the screen) how can I do?
Reply:
hahaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Downstairs to tell him
Reply:
So you try to see:
_LIT (Pathfile, "");
RFile file;
int len;
unsigned char * ibuf;
file.Open (iEikonEnv- & gt; FsSession (), pathfile, EFileRead);
file.Size (len);
ibuf = new unsigned char [len];
file.Read (TPtrC (ibuf, len));
file.Close ();
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment