public void saveConsumable() {
		BufferedReader reader;
		try {
			reader = new BufferedReader(new FileReader(System.getProperty("resources") + "/database/consumables"));

			String line;
			int pos = 0;
			StringBuilder fileContent = new StringBuilder();
			String newLine = null;
			while((line = reader.readLine()) != null) {
				String[] temp = line.split(";");

				if(temp[0].matches(IDText.getText())) {
					newLine = IDText.getText() + ";" + effectTextArea.getText();
					fileContent.append(newLine);
					fileContent.append(System.getProperty("line.separator"));
				} else if(Integer.parseInt(IDText.getText()) > pos && Integer.parseInt(IDText.getText()) < Integer.parseInt(temp[0]) && 
						Integer.parseInt("" + IDText.getText().charAt(0)) <= Integer.parseInt("" + temp[0].charAt(0))) {
					newLine = IDText.getText() + ";" + effectTextArea.getText();
					fileContent.append(newLine);
					fileContent.append(System.getProperty("line.separator"));
					fileContent.append(line);
					fileContent.append(System.getProperty("line.separator"));
				} else {
					fileContent.append(line);
					fileContent.append(System.getProperty("line.separator"));
				}
				pos = Integer.parseInt(temp[0]);
			}
			if(newLine == null) {
				newLine = IDText.getText() + ";" + effectTextArea.getText();
				fileContent.append(newLine);
				fileContent.append(System.getProperty("line.separator"));
			}

			BufferedWriter out = new BufferedWriter(new FileWriter(System.getProperty("resources") + "/database/consumables"));
			out.write(fileContent.toString());
			out.close();
			reader.close();
		} catch (FileNotFoundException e) {
			System.out.println("The consumable database has been misplaced!");
			e.printStackTrace();
		} catch (IOException e) {
			System.out.println("Consumable database failed to load!");
			e.printStackTrace();
		}
	}