public void importFile() {
		if (location == null) {
			return;
		}
		try {
			JagexBuffer buffer = new JagexBuffer(DataUtils.readFile(location));
			main = Utilities.readHeaderChunk(buffer);
			Utilities.readTypeChunk(main, buffer);
			int children = buffer.getShort();
			if (children != 0) {
				for (int index = 0; index < children; index++) {
					RSInterface child = Utilities.readHeaderChunk(buffer);
					Utilities.readTypeChunk(child, buffer);
					int subchildren = buffer.getShort();
					if (subchildren != 0) {
						for (int sub = 0; sub < subchildren; sub++) {
							RSInterface subchild = Utilities.readHeaderChunk(buffer);
							Utilities.readTypeChunk(subchild, buffer);
						}
						int subsubchildren = buffer.getShort();
						if (subsubchildren != 0) {
							for (int sub = 0; sub < subchildren; sub++) {
								RSInterface subchild = Utilities.readHeaderChunk(buffer);
								Utilities.readTypeChunk(subchild, buffer);
							}
						}
					}
				}
			}
			JOptionPane.showMessageDialog(null, "Interface " + main.id + " was imported successfully.");
		} catch (Exception e) {
			log("An error occurred while importing the interface.");
			e.printStackTrace();
		}
	}