Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralBShah authored Aug 14, 2023
1 parent d38a9a4 commit 0304e2b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,16 @@ Typical usage would be something like
```julia
import GZip

fh = GZip.open("infile.gz")
s = readline(fh)
...
close(fh)


...
# Write some text into a compressed .gz file
s = "gzip is part of zlib, a free, general-purpose, " *
"legally unencumbered, lossless data-compression library"

fh = GZip.open("outfile.gz", "w")
fh = GZip.open("testfile.gz", "w")
write(fh, s)
...
close(fh)

# Read back the data
fh = GZip.open("testfile.gz")
s = readline(fh)
close(fh)
```

Expand Down

0 comments on commit 0304e2b

Please sign in to comment.