Re: How to open a compressed file in gz format ?

2021-03-16 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/14/21 9:36 PM, sharkloc wrote: I want to read the content(file.gz) line by line,the following code is not friendly to large files of hundreds of Gb, and the memory overhead is also very large. import std.stdio; import std.process; import std.string; void main(string[] args){

Re: How to open a compressed file in gz format ?

2021-03-16 Thread frame via Digitalmars-d-learn
On Monday, 15 March 2021 at 01:36:08 UTC, sharkloc wrote: I want to read the content(file.gz) line by line,the following code is not friendly to large files of hundreds of Gb, and the memory overhead is also very large. You can use the internal zlib instead of a shell. This example is using

How to open a compressed file in gz format ?

2021-03-14 Thread sharkloc via Digitalmars-d-learn
I want to read the content(file.gz) line by line,the following code is not friendly to large files of hundreds of Gb, and the memory overhead is also very large. import std.stdio; import std.process; import std.string; void main(string[] args){ string fileName = args[1];