actio_python_utils.argparse_functions.str_from_file

actio_python_utils.argparse_functions.str_from_file(fn)[source]

Returns the text from a file name

Parameters:

fn (str) – The file name to read

Raises:

OSError – if fn doesn’t exist

Return type:

str

Returns:

The string representing the content of fn