Results 1 to 2 of 2

Thread: How to read record from .tar file to Qbyte Array

  1. #1
    Join Date
    Sep 2020
    Posts
    7
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default How to read record from .tar file to Qbyte Array

    Hi team,
    i am new to QT
    i have a requirement where i have to read the contents of file named "xyz.tar" to QbyteArray.

    After reading to QbyteArray, i have create a file with same name in other location and copy the contents from Qbyte array to new file .but i can copy only 8 bytes at a time from QbyteArray to new file.

    is there a way i can read the contents of .tar file in Qt?


    Regards,
    Anamika

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,021
    Thanks
    280
    Thanked 818 Times in 807 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: How to read record from .tar file to Qbyte Array

    You don't show us any code, so how are we to help you?

    but i can copy only 8 bytes at a time from QbyteArray to new file.
    This does not make any sense, but with no code, no way to know what is wrong.
    <=== 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.

Similar Threads

  1. Replies: 1
    Last Post: 10th November 2020, 08:08
  2. QVector or 2D Array to read out from a file
    By vitalic in forum Newbie
    Replies: 4
    Last Post: 28th April 2020, 17:44
  3. read ini file content and save into array
    By cooper in forum Newbie
    Replies: 8
    Last Post: 14th March 2011, 21:33
  4. read a .txt file and store it in a double array
    By fatecasino in forum Newbie
    Replies: 5
    Last Post: 3rd December 2010, 20:13
  5. read from file into array
    By obad in forum Qt Programming
    Replies: 1
    Last Post: 1st August 2010, 08:26

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.