Character loadCharacter (String name) {
		File file = new File("characters", name.toLowerCase());
		if (!file.exists()) return null;
		DataInputStream input = null;
		try {
			input = new DataInputStream(new FileInputStream(file));
			Character character = new Character();
			character.id = input.readInt();
			character.name = name;
			character.otherStuff = input.readUTF();
			character.x = input.readInt();
			character.y = input.readInt();
			input.close();
			return character;
		} catch (IOException ex) {
			ex.printStackTrace();
			return null;
		} finally {
			try {
				if (input != null) input.close();
			} catch (IOException ignored) {
			}
		}
	}