Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. .cab files read in binary mode

.cab files read in binary mode

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 Posts 3 Posters 0 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
    apoorva_raje
    wrote on last edited by
    #1

    my code splits a large chunk of folders and files into multiple disks. every file is read in binary mode and written in a disk using fopen(), fgetc(), fputc() till its capacity is exceeded. the code also integrates the disks into one. now every kind of file is running smoothly (.exe .txt etc) except .cab files. it says the xyz.cab file is corrupt. what cud be the prob? thx

    M D 2 Replies Last reply
    0
    • A apoorva_raje

      my code splits a large chunk of folders and files into multiple disks. every file is read in binary mode and written in a disk using fopen(), fgetc(), fputc() till its capacity is exceeded. the code also integrates the disks into one. now every kind of file is running smoothly (.exe .txt etc) except .cab files. it says the xyz.cab file is corrupt. what cud be the prob? thx

      M Offline
      M Offline
      Monty2
      wrote on last edited by
      #2

      well it should work you are using unsigned char right? try with fread and fwrite


      Jesus loves you. But I'm his favorite.

      A 1 Reply Last reply
      0
      • M Monty2

        well it should work you are using unsigned char right? try with fread and fwrite


        Jesus loves you. But I'm his favorite.

        A Offline
        A Offline
        apoorva_raje
        wrote on last edited by
        #3

        tried that already.. not working.. thanks anyways.. :-)

        1 Reply Last reply
        0
        • A apoorva_raje

          my code splits a large chunk of folders and files into multiple disks. every file is read in binary mode and written in a disk using fopen(), fgetc(), fputc() till its capacity is exceeded. the code also integrates the disks into one. now every kind of file is running smoothly (.exe .txt etc) except .cab files. it says the xyz.cab file is corrupt. what cud be the prob? thx

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          apoorva_raje wrote:

          ...written in a disk using fopen(), fgetc(), fputc()...

          Do you enjoy reading & writing one byte at a time?


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

          "Judge not by the eye but by the heart." - Native American Proverb

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups