If MODE is '>>', the file is opened for appending, again being created if necessary.