Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6705499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:24:40+00:00 2026-05-26T07:24:40+00:00

I am acquainted that some folks have already written about this question; however, this

  • 0

I am acquainted that some folks have already written about this question; however, this question is not clear to me yet. I need to read gzipped files which contain unformatted data. I have unsuccessfully tried following instructions from zlib and gzstream sites. Could anybody provide me a quick example of how to extract data directly from the compressed gzip file using an ifstream? My procedure using dat files is the following:

#include <iostream>
#include <sstream>
#include <string>

int main () {
    ifstream file;
    string stringtemp;
    stringstream line2convert;
    file.open("directory/file.dat");
    // read each line using a for loop (I know the total number of lines)
    file.getline (line,100);
    // extract information line by line using stringstreams
    line2convert  << line;
    line2convert >> int2convert;   
    ...
    ...
    ...
} 

Anybody could give me a hint to add a few lines that I need?

Thanks!
– F

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:24:40+00:00Added an answer on May 26, 2026 at 7:24 am

    if you know how to link in gzstream, you can do that

    just replace “ifstream” with “igzstream”

    .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iPad application that has a base image UIImageView (in this case
I'm trying to make a design decision. I'm not well acquainted with either MongoDB
I'm writing some lines of code to get acquainted with the basics of Quartz
I'm interested in learning more about pattern recognition. I know that's somewhat of a
I created a swf that I have on my website. The swf loads xml
I am planning to create a small research web application, that will have a
I'm getting acquainted with GWTP. I tried to output a table, that would contain
Python came pre-installed on my macbook and I have been slowly getting acquainted with
On the front-end, I have a PHP webapp that allows users to create a
I have programmed a bit of C++ back about 14 years ago. I got

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.