各位帮我看看这段代码究竟哪有问题?谢了!
try {
FileOutputStream file = new FileOutputStream("c:\userInfo.ser");
//提示上面一句的c:\userInfo.ser这块有错
ObjectOutputStream out = new ObjectOutputStream(file);
out.writeObject(user);
out.flush();
}
catch (java.io.IOException IOE) {
labelOutput.setText("IOException");
}
finally {
out.close();
}