Java tutorial
import java.io.FileOutputStream; public class Main extends FileOutputStream { public Main() throws Exception { super("C://test.txt"); } public static void main(String[] args) throws Exception { Main fosa = new Main(); // read byte from file input stream fosa.finalize(); } }