public static void write() throws Exception
	{
		if (patchNo == 0)
		{
			newFile = new File(ActionHandler.outputPatchSelectedFile.toString() + "/Patch.txt");
		}
		else
		{
			newFile = new File(ActionHandler.outputPatchSelectedFile.toString() + "/Patch" + patchNo + ".txt");	
		}
		
		if (newFile.exists())
		{
			System.out.println("The file already exists, adding number...");
			patchNo++;
			write();
		}
		else
		{
			newFile.createNewFile();
			create();
		}	
	}