<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def str_from_file(path):
 """ Return file contents as string. """

    with open(path) as f:
        s = f.read().strip()
    return s