trnslator.utils.write_lines

trnslator.utils.write_lines(file_path, lines)[source]

Delete file if exists, then write lines in it

Parameters
  • file_path (str) – path of the file

  • lines (list of str) – lines to be written in file