public static void writeString(String path, String content) {
		//Open file
		Path jPath = Paths.get(path);

		//Create file if necessary
		if (!Files.exists(jPath, LinkOption.NOFOLLOW_LINKS)) {
			try {
				Files.createFile(jPath);
			} catch (IOException ex) {
				System.out.print(ex);
				System.exit(1);
			}
		}

		//Error if not writable
		if (!Files.isWritable(jPath)) {
			System.out.println("File " + jPath + " could not be written!");
			System.exit(1);
		}
		//Write lines
		try {
			Files.write(jPath, content.getBytes(Charset.forName("UTF-8")));
		} catch (IOException ex) {
			System.out.println(ex);
		}
	}