Results 1 to 2 of 2

Thread: Multiple File Data accessing

  1. #1
    Join Date
    Apr 2009
    Posts
    24
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Multiple File Data accessing

    hi all, can i fetch a simple text file data into another text file. In other words just copy one file data into another file.please tell me the command of it.
    I am using already QFile function for string manipulation.
    thanks

  2. #2
    Join Date
    Apr 2009
    Location
    Valencia (Spain)
    Posts
    245
    Thanks
    38
    Thanked 19 Times in 19 Posts
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default Re: Multiple File Data accessing

    From QtAssistant:

    The file is opened with open(), closed with close(), and flushed with flush(). Data is usually read and written using QDataStream or QTextStream, but you can also call the QIODevice-inherited functions read(), readLine(), readAll(), write(). QFile also inherits getChar(), putChar(), and ungetChar(), which work one character at a time.

    So, read on file and write all the data at the end of the other.

Similar Threads

  1. tricks when designing project file formats?
    By pir in forum General Programming
    Replies: 10
    Last Post: 21st July 2006, 13:08
  2. Replies: 3
    Last Post: 23rd June 2006, 17:46
  3. Accessing DTD in an XML file via QtXml module?
    By jorma in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2006, 18:09
  4. Accessing the entire file..
    By Kapil in forum Newbie
    Replies: 1
    Last Post: 28th April 2006, 07:41
  5. Replies: 25
    Last Post: 15th January 2006, 00:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.