public void loadConfig() {
		File f = new File("./filesystem_config.conf");
		try {
			//TODO: This might be a shitty way to create a DataInputStream
			DataInputStream fi = new DataInputStream(new FileInputStream(f));
			filesystem_config = new HashMap<String,String>();
			while(fi.available()>0) {
				//split on =
				String line = fi.readLine();
				String[] split = line.split("=");
				filesystem_config.put(split[0], split[1]);
				if(split[0].equals("files")) {
					filenames = split[1].split(",");
				}
			}

		} catch (FileNotFoundException e) {
			System.out.println("Could not find filesystem_config.conf, exiting");
			System.exit(1);
		} catch (IOException e) {
			System.out.println("Could not read filesystem_config.conf, exiting");
			System.exit(1);
		}
		repFactor = Integer.parseInt(filesystem_config.get("replication_factor"));
	}