×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  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
    Super Contributor
    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. Cannot open file in use
    By Simron in forum Bluetooth Technology
    Replies: 1
    Last Post: 2009-02-05, 16:00
  2. open Flash file
    By viswa08 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2008-09-06, 11:29
  3. Help needed with a 3gp file...
    By joedoe_1981 in forum Streaming and Video
    Replies: 0
    Last Post: 2007-07-18, 18:58
  4. 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
  •  
×