// Försök att packa upp det objekt som packats ned med Seritest1

import java.io.*;

public class SeriRead {
   static public void main (String [] args) {
       Object p = null;
       try { 
           InputStream fis = new FileInputStream (args[0]);
           ObjectInputStream s = new ObjectInputStream (fis);

           p = s.readObject();
           s.close();
       }

       catch (Exception e) {
           throw new RuntimeException(e);
       }

       System.out.println(p);
   }
}
