Signature: readFile(filename: string) -> Result<string, Error>

Description: Reads the entire contents of a file as a string.

Parameters

Returns: Result<string, Error>

Example

let content = readFile("input.txt")
print("File read")