pytrnsys_process.util.utils.get_file_content_as_string#

pytrnsys_process.util.utils.get_file_content_as_string(file_path: Path, encoding: str = 'UTF-8') str[source]#

Read and return the entire content of a file as a string.

Parameters:
  • file_path – Path to the file to read

  • encoding – File encoding to use. Defaults to “UTF-8”.

Returns:

file_content – Content of the file as a string

Return type:

str