×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    How to read/write data file ?

    Hey,

    Is there a way to read/write local data file?
    Like if want to make a simple game how can I save data for high score?

    Thanks,
    Roi

  2. #2
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: How to read/write data file ?

    WRT has a way to store persistent data, called a "preference", in between application sessions. You save a string with a name using setPreference and retrieve it by name using getPreference. You can also store a json object as the string.

    read about the setPreference and getPreference in the WRT docs.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    Re: How to read/write data file ?

    Hey, thanks, I was thinking using cookies .

    I cant find anything about setPreference in the wrt library.
    closest I found is ISysInfo.GetInfo() ISysInfo.SetInfo().

    I tried searching in google maybe to get some link somewhere but nothing.

    can you provide me a link in the docs ?
    (I am browsing http://library.forum.nokia.com/)

    --------EDIT----------

    I found these:
    setPreferenceForKey(), PreferenceForKey()
    It seems to be it.
    thanks again

Similar Threads

  1. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  2. Append data to file
    By techietintu in forum Symbian C++
    Replies: 2
    Last Post: 2007-12-18, 05:17
  3. The error of read data from file
    By balloon22607 in forum Symbian C++
    Replies: 1
    Last Post: 2007-04-02, 12:25
  4. Replies: 0
    Last Post: 2006-06-05, 18:08
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •