read_file

getmac.utils.read_file(filepath)[source]

Open and read a file.

Parameters:

filepath (str) – Absolute path of the file to read

Return type:

Optional[str]

Returns:

Text contents of the file, or None if opening the file failed.