how to write 16-bit descriptor in a file

Login to reply to this topic.
Thu, 2007-12-13 13:56
Joined: 2007-11-12
Forum posts: 17

i have a 16-bit descriptor string (quite lengthy) that i need to write into a temporary file so that i can take small chunks of it at a time in a buffer and parse it. But i find the RFile takes only 8-bit descriptors. So, i was wondering how to go about it.

Do i use Streams?

RFileWriteStream writer;
writer.PushL();
User::LeaveIfError(writer.Replace(CCoeEnv::Static()->FsSession(),
                        KTempFilePath, EFileWrite));


writer << aData;  // aData 16-bit descriptor
writer.CommitL();
writer.Pop();
writer.Close();

The code leaves from there.


Thu, 2007-12-13 15:48
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2006
Re: how to write 16-bit descriptor in a file

You should take a look at TFileText class... this allow to read/write 16 bit descriptors into a RFile.


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

  • Login to reply to this topic.