The Java code is
ObjectInputStream ois=new ObjectInputStream(new FileInputStream("src/Stringdata.txt"));
String s=(String)ois.readObject();
System.out.println(s.toString());
} catch (IOException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
here am getting java.io.StreamCorruptedException: invalid stream header: 4D6F7374 this error please help me
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…