/* * [MakeEmptyGoList.java] * * Summary: Create an empty goList so that SeeSort can work on dirs without glossaries. * * Copyright: (c) 2001-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.0 2001-03-08 initial * 1.1 2006-01-01 * 1.2 2006-03-05 reformat with IntelliJ, add Javadoc */ package com.mindprod.go; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; /** * Create an empty goList so that SeeSort can work on dirs without glossaries. * * @author Roedy Green, Canadian Mind Products * @version 1.2 2006-03-05 reformat with IntelliJ, add Javadoc * @since 2001-03-08 */ public class MakeEmptyGoList { /** * Create an empty goList so that SeeSort can work on dirs without glossaries * * @param args not used * * @throws IOException */ public static void main( String[] args ) throws IOException { GoList g = new GoList( 0 ); // O P E N FileOutputStream fos = new FileOutputStream( "empty.ser" ); ObjectOutputStream oos = new ObjectOutputStream( fos ); // W R I T E oos.writeObject( g ); // C L O S E oos.close(); } }