Adding a very simple function to write provided contents to a file, overwriting existing contents.
Merge pull request #13169 from garethgreenaway/adding_simple_file_dot_write

Additions to file module