readFile static method
Reads the contents of a file and trims any extra whitespace.
path
: The file path to read from.
Returns: A string containing the file's contents.
Implementation
static String readFile(String path) => File(path).readAsStringSync().trim();