I have a binary file to read and I wanna do it in series 60 symbian device.
I m comfertable doing it in BREW where i create a file pointer and keep on reading the data.
But what is the procedure in Symbian?
Where am i suppose to keep my file? Y do i need a RFs session. How do i create its objects? I do i create an instance of TBUF and TBuf8?
Here is what i did
Well i got the code to work and its storing the values properly. But i m stuck with a new problem.
RFile.Read reads into a TBuf object but i need to get this value into a TInt16.
Here is my code that is working
error C2248: 'iBuf' : cannot access protected member declared in class 'TBuf8<1>'
\Symbian\7.0s\Series60_v20\EPOC32\INCLUDE\e32des8.h(276) : see declaration of 'iBuf'
error C2440: '=' : cannot convert from 'unsigned char ' to 'signed char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
I actually need to read 2 byte(one at a time) and then write it to 2 different TInt16 values and then OR those two TInt16 to get the actual value.
I can easily do it in C or C++ , but how do i do it in Symbian??
plzzzzzzzz help. M so close but still sooo far