Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unite and split files.
Qt 6.11 is out! See what's new in the release blog

Unite and split files.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anticross
    wrote on last edited by
    #1

    I need to unite files in one file and then split this file to many. Also I need to restore all filenames and extensions after splitting like it done in WinRar, WinZip applications. So is there a simple way to solve it using qt ? The first idea is to read all bytes from all files and store it in one but next I need to do some record in which I hold number of files, it's lengths and filenames and extensions. So is there any simplest way ?

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      I would recommend reading the QIODevice class documentation. In that class all file related options are described. You might want to use the .pos and .count etc to get all the parameters you need.
      Then think of a way to have a sort of MBR in the beginning of the file which lists the current files imported and what position the data bytes of the file are.
      greetz

      Greetz, Jeroen

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved