docs: public static boolean writeStringToFile(final File file, final String string2write,
  		final String encoding) throws FileNotFoundException, IOException
  	{
  		boolean iswritten = true;
  		try (FileOutputStream fos = new FileOutputStream(file);
  			BufferedOutputStream bos = new BufferedOutputStream(fos);
  			OutputStreamWriter osw = (null == encoding)
  				? new OutputStreamWriter(bos)
  				: new OutputStreamWriter(bos, encoding);
  			PrintWriter printWriter = new PrintWriter(osw);)
  		{
  			printWriter.write(string2write);
  		}
  		return iswritten;
  	}