Hi ,
I'm developing an a[[lication in Symbian and I want to save some data(Of the App.) in the drive.
There is options (Exceps regular read/write from file) to do it ? (i.e. DB , Save objects to file like java ,or Registery).
Best regrads ,
Pood
Hi ,
I'm developing an a[[lication in Symbian and I want to save some data(Of the App.) in the drive.
There is options (Exceps regular read/write from file) to do it ? (i.e. DB , Save objects to file like java ,or Registery).
Best regrads ,
Pood
You could use Database to store your information.
Regards,
Sriky
Hi,
You could use any other way to store your data but I guess you will require to use RFile class to achieve it. So Read/Write methods are still valid methods for your case.
Maximus
S60 Developer
Impossible is nothing
Hi,
You could use RDbNamedDatabase here in the following link there is a sample implementation http://wiki.forum.nokia.com/index.php/Database_Example
Regards,
Sriky
Maximus
S60 Developer
Impossible is nothing
The problem to use in RFile that I want to save data that after it i'll need to parse it (From the file).
What i want is to load and save different types (Like TTime , Tbuf , etc) on the device without need to parse it.If I want want to save only text , I will use file direct probably.
Hi poodk,
You could use RDbNamedDatabase to store TTime and Tbuf check out the link I have given and also check out RDbRowSet public api's.
Regards,
Sriky
DB is a bit overkill for this purpose.
If you have a T-class, sayand you want to save or load it, just writeCode:class TAdvertisement { public: TBuf<20> iWare; TBuf<200> iDescription; TInt iPrice; TTime iDeadline; };TPckg (and TPckgBuf) is a packaging descriptor, it wraps your structure into a 8-bit descriptor which can be directly written/read to/from a file without text-conversion/parsing.Code:// 'ad' is a TAdvertisement, 'file' is an RFile TPckg<TAdvertisement> adpack(ad); file.Write(adpack); // or file.Read(adpack); and the result immediately appears in 'ad'