×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    can't open text file

    hello

    if I open a text file ReadOnly it's ok

    code:

    file.setFileName(":/i.txt");
    file.open(QIODevice::ReadOnly);
    bool a =file.isOpen();

    a is true

    but if I try to open file ReadWrite or WriteOnly

    file.setFileName(":/i.txt");
    file.open(QIODevice::ReadWrite); or WriteOnly
    bool a =file.isOpen();


    a is false

    someone can help me?

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: can't open text file

    Because you cannot modify resource files.
    Last edited by divanov; 2010-01-11 at 17:28.

Similar Threads

  1. [moved] Theme Studio Error
    By TalJ in forum Themes/Carbide.ui
    Replies: 2
    Last Post: 2009-09-06, 03:39
  2. Cannot open file in use
    By Simron in forum Bluetooth Technology
    Replies: 1
    Last Post: 2009-02-05, 16:00
  3. open Flash file
    By viswa08 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2008-09-06, 11:29
  4. Help needed with a 3gp file...
    By joedoe_1981 in forum Streaming and Video
    Replies: 0
    Last Post: 2007-07-18, 18:58
  5. Replies: 1
    Last Post: 2005-05-26, 14:22

Posting Permissions

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