반응형
FileInputStram fileStream = new FileInputStream("MyGame.ser"); //file지정
ObjectImputStream os = new ObjectInputStream(fileStream);//get Object
Object one = os.readObject();
Object two = os.readObject();
Object three = os.readObject();
GameCharactor elf = (GameCharactor) one;
GameCharactor troll = (GameCharactor) two;
GameCharactor magician = (GameCharactor) three;
os.close();
반응형
|