Results 1 to 2 of 2

Thread: How to Read and Write .asc file in qt cpp

  1. #1
    Join Date
    Jan 2019
    Posts
    4
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question How to Read and Write .asc file in qt cpp

    Hello ,

    Below are my data in .asc file as

    0.004280 1 510 Rx d 8 38 01 00 08 13 16 17 06 Length = 239910 BitCount = 124 ID = 1794

    So, my question is how to Read and write above data into separate byte to byte i.e. from Byte#0 to Byte#7.




    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,292
    Thanks
    36
    Thanked 1,521 Times in 1,472 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to Read and Write .asc file in qt cpp

    QFile for the file access, QTextStream for reading lines, QString API or QRegularExpression for parsing the numbers.

    Cheers,
    _

Similar Threads

  1. How can I Read Write Excel File
    By xingshaoyong in forum Qt Programming
    Replies: 6
    Last Post: 13th July 2011, 20:16
  2. Replies: 2
    Last Post: 2nd November 2010, 05:15
  3. file read & write help....
    By aj2903 in forum Qt Programming
    Replies: 1
    Last Post: 17th November 2008, 11:58
  4. [Java] read and write a file
    By mickey in forum General Programming
    Replies: 3
    Last Post: 22nd June 2008, 10:43
  5. structures to a file (read and write)
    By baray98 in forum Qt Programming
    Replies: 5
    Last Post: 10th February 2008, 20:12

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.