def write(self, location, text, encoding):
        location = os.path.expanduser(location)

        with codecs.open(location, 'w', encoding) as f:
            f.write(text)
Write file to disk.
dataset/ETHPy150Open jonathanslenders/pyvim/pyvim/io/backends.py/FileIO.write