try {
InputStream is = new BufferedInputStream(mContext.openFileInput(FILE_NAME), 8192);
DataInputStream in = new DataInputStream(is);
int version = in.readInt();
if (version > LAST_VERSION) {
throw new IOException("data version " + version + "; expected " + LAST_VERSION);
}
history = new History(version, in);
in.close();
} catch (FileNotFoundException e) {
Calculator.log("" + e);
} catch (IOException e) {
Calculator.log("" + e);
}