autofile.io_

read and write to files

autofile.io_.read_file(file_path)

read a file as a string

Parameters

file_path (str) – path of file to be read

Returns

file contents

Return type

str

autofile.io_.write_file(file_path, string)

write a string to a file

Parameters
  • file_path (str) – path of file to be written

  • file_path – string to be written