xdl.readwrite.utils module

xdl.readwrite.utils.read_file(file_name: str) str[source]

Read file, allowing for different encodings caused by Windows grrr. Assumes existence of file etc has already been checked, just here to read.

Parameters

file_name (str) – File to read.

Returns

Contents of file.

Return type

str