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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Accessing files which are in JAR

Accessing files which are in JAR

Scheduled Pinned Locked Moved C / C++ / MFC
c++
4 Posts 4 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
    Azghar Hussain
    wrote on last edited by
    #1

    Hi, I have couple of text files in JAR. I want to access them in my C++ application. Basically I want to get the FILE pointer to those file. Please let me know how would we do it. thanks in advance Umrahi...

    If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

    D CPalliniC M 3 Replies Last reply
    0
    • A Azghar Hussain

      Hi, I have couple of text files in JAR. I want to access them in my C++ application. Basically I want to get the FILE pointer to those file. Please let me know how would we do it. thanks in advance Umrahi...

      If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

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

      See here for ideas.

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      1 Reply Last reply
      0
      • A Azghar Hussain

        Hi, I have couple of text files in JAR. I want to access them in my C++ application. Basically I want to get the FILE pointer to those file. Please let me know how would we do it. thanks in advance Umrahi...

        If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        Why don't you use the jar tool to decompress the files? :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • A Azghar Hussain

          Hi, I have couple of text files in JAR. I want to access them in my C++ application. Basically I want to get the FILE pointer to those file. Please let me know how would we do it. thanks in advance Umrahi...

          If you have faith in the cause and the means and in God, the hot Sun will be cool for you.

          M Offline
          M Offline
          Michael Schubert
          wrote on last edited by
          #4

          Judging from the header, they are simple ZIP files. Try one of the ZIP/UNZIP classes here on CP to access them.

          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