Discussion Board

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

    How to read/write data file ?


    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?


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

    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

    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/)


    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
    Replies: 2
    Last Post: 2007-12-18, 05:17
  3. The error of read data from file
    By balloon22607 in forum Symbian
    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