<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getLinesFromLogFile(stream):
 """ Returns all lines written to the passed in stream """

    stream.flush()
    stream.seek(0)
    lines = stream.readlines()
    return lines