write_header
- mdtools.file_handler.write_header(fname, **kwargs)[source]
Write the standard MDTools header to file.
See
mdtools.file_handler.header_str()for further information about what is contained in the header.- Parameters:
fname (
strorbytesoros.PathLike) – The name of the file to which to write the header.kwargs (
dict, optional) – Additional keyword arguments to parse tomdtools.file_handler.xopen(). See there for possible arguments and their description. By default, mode is set to'wt'(open file for writing in text mode, truncating the file first).
See also
mdtools.file_handler.header_str()Create a standard header string for text files
mdtools.file_handler.backup()Backup a file by renaming it