public static void save() throws IOException {
		// Scanner scan = new Scanner(System.in);
		File input = new File("src/" + ACC + ".txt");
		try {
			Scanner scan = new Scanner(input);

			String table = "";
			while (scan.hasNextLine()) {
				String temp = scan.nextLine();
				String[] t = temp.split(",");
				if (t[0].equals(DATA[0])) {
					if (ACC.equalsIgnoreCase("provider")) {
						temp = P.toWrite();
					} else {
						temp = M.write();

					}
				}
				table += temp;
				// if(DATA[6].equalsIgnoreCase("p")) table+=",p";
				table += "\n";
			}
			try {
				OutputStream output = new FileOutputStream("src/" + ACC
						+ ".txt");
				PrintStream printOut = new PrintStream(output);
				printOut.print(table);
				System.setOut(printOut);
				System.out.flush();
				printOut.close();
				output.close();
				output = new FileOutputStream("src/transaction.txt");
				printOut = new PrintStream(output);
				String toWrite = "";
				for (String[] a : Atlantic) {
					Transaction temp = new Transaction(a);
					toWrite+=temp.toWrite() + "\n";
					
				}
				printOut.print(toWrite);
				printOut.close();
				output.close();
			} catch (FileNotFoundException e) {
				System.out.println("Failed to update Database.");
			}
		} catch (FileNotFoundException e) {
			System.out.println("Failed to read Database.");
		}
	}