code: def write_file(self, filename, **kwargs):
          
          with zopen(filename, "wt") as f:
              f.write(self.get_string(**kwargs))
docs: Writes POSCAR to a file. The supported kwargs are the same as those for
          the Poscar.get_string method and are passed through directly.