Use native file.write