Read/Write text file

Former Member
Former Member
Hello, is there any way to read/write a text file? For example, to store data that otherwise would go hardcoded in the program (thus making it bigger)

I haven't found any info about this subject.

Is there any other Connect IQ resources other than the Programming manual and this forum.

I think I am going to give up programming in this platform, enjoy the Fenix3 as is, and wait to the first wearable sports smartwatch Android compatible...
  • There's no way to read/write a text file on the watch (other that writing to the <myapp>.txt log file). Would the Object Store work for what you have in mind?
  • Former Member
    Former Member over 9 years ago
    There's no way to read/write a text file on the watch (other that writing to the <myapp>.txt log file). Would the Object Store work for what you have in mind?

    No, Object Store is intended to be used with key/value pairs (could be useful to store some settings for example).

    Imagine I want to allow a user to choose a city to load some values. I have information of 20.000 cities of the world.

    Obviously I don't want to hardcode that information in the app, so I would like to have it outside and load it when necessary.

    It's just an example on why would I need read/write access to a file...
  • What about getting the info off a web server with makeJsonRequest()? You couldn't get 20k items in a single response (the limit is something like 8k of data in a response, and you also have a limit as far as the number of objects)