Hi,
I think I need to use serializable in-order to read objects in this case "engine" from a file. Although, I don't have any idea how to read the onject. This is what I have done thus far:
java Code:
public void readFromTextFile(BufferedReader fi) throws IOException { this.engine =Integer.parseInt(fi.readLine()); } public void writeToTextFile(PrintWriter fo) throws IOException { fo.println(this.engine); }
I have been trying to follow this example but I'm unsure whether I need everything in the example?
Thanks,
Nightwalker83




Reply With Quote