public static boolean openFile(File file) {
		BufferedReader input = null;
		try {
			input = new BufferedReader(new FileReader(file));
		} catch (Exception e) {
			e.printStackTrace();
			System.err.println("Unable to open file "+file.getPath());
		}
		
		try {
			String line = input.readLine();

			double version = Double.valueOf(line.split(" ")[1]);
			Main.partList = new ArrayList<Part>();
			while((line = input.readLine())!=null) {
				
				if (line.startsWith("-part~")) {
					String[] comp = line.split("~");
					Part p = new Part(comp[1]);
					p.quantity = Integer.valueOf(comp[2]);
					p.location = Location.getLocationByName(comp[3]);
					p.description = comp[4];
					p.notes = comp[5];
					p.checkedOut = Boolean.valueOf(comp[6]);
					if (p.checkedOut)
						p.whoChecked = comp[7];
					Main.partList.add(p);
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.println("Opened File "+file.getPath());
		return true;
	}