This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |