The docstring look out of sync... does it writes to version.txt or to an arbitrary file defined by version_file ?

-------

To avoid confusions between a file path and a file object , i prefer to use `version_path` for the string path variable  and `version_file` for the file object.