반응형

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();

반응형

노루오줌 풀
국내도서
저자 : 김남구
출판 : 시문학사 2004.03.15
상세보기

Posted by neodalos
,