Skip to content

Instantly share code, notes, and snippets.

Myles Daniel Baker mydpy

Block or report user

Report or block mydpy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mydpy
mydpy / gz.scala
Created May 21, 2019 — forked from pauca/gz.scala
scala read / write from compressed gz
View gz.scala
import java.io._
import java.util.zip._
import scala.io.Source
var in = new GZIPInputStream(new FileInputStream("test.gz"))
// write setup in different objects to close later properly (important for big files )
var fos = new FileOutputStream("test2.gz")
var gzos = new GZIPOutputStream( fos )
var w = new PrintWriter(gzos)
You can’t perform that action at this time.