<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def seek_file_end(file):
    '''Seek to the end of the file.'''
    try:
        file.seek(0, 2)
    except ValueError:
        # gzip files don't support seek from end
        while True:
            data = file.read(4096)
            if not data:
                break