Results 1 to 2 of 2

Thread: Problem to export .bin file to .txt file

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,329
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Problem to export .bin file to .txt file

    QDataStream is for writing binary files, not text files. You need to open your target QFile with OpenMode "QIODevice:: WriteOnly | QIODevice:: Text" and then you need to use QTextStream to write the text file.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  2. The following user says thank you to d_stranz for this useful post:

    Eduardo Huerta (19th June 2018)

Similar Threads

  1. export my sql table to an excel file
    By achraf1194 in forum General Programming
    Replies: 1
    Last Post: 22nd October 2015, 14:10
  2. Replies: 2
    Last Post: 28th February 2014, 12:19
  3. Replies: 1
    Last Post: 4th March 2011, 08:34
  4. export file MySql to QtSql
    By pispipepe in forum Qt Programming
    Replies: 4
    Last Post: 21st December 2010, 02:19
  5. how to export data to a .CSV file
    By qtprgrmr in forum Qt Programming
    Replies: 1
    Last Post: 26th May 2010, 16:22

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.