Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem with creating .txt file - Maemo
Forum Updated to NodeBB v4.3 + New Features

Problem with creating .txt file - Maemo

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    duniu_bartek
    wrote on last edited by
    #1

    Hello Everyone

    In my app ( for nokia N900 ) I would like to create a new .txt file and edit it. How to create new txt file or how to use existing file? I include QFile library to mainwindow.h and trying in this way but without result. After install app on N900 cordinate.txt no exist.

    @ QFile *MyFile;
    MyFile = new QFile("cordinate.txt");
    MyFile->open(QIODevice::ReadWrite | QIODevice::Text);@

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Which directory are you expecting coordinate.txt to exist in? I believe currently it's going to try to write it in the app's current working directory, which may or may not be what you want, depending on where the application is at on the device (and what permissions exist there, etc.)

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved