Package fileio provides convenient functions for reading and writing files and directories to a filesystem
They may not be the most efficient implementations but the focus is on ease of use
WriteFile writes the given data to a file at the given path. It creates the file if it does not exist, and overwrites it if it does.
If directories in the file path do not exist, they are created.