def seek_read(path, size, offset):
    path = os.path.expanduser(path)
    try:
        seek_fh = os.open(path, os.O_RDONLY)
        os.lseek(seek_fh, int(offset), 0)
        data = os.read(seek_fh, int(size))
    finally:
        os.close(seek_fh)
    return data
.. versionadded:: 2014.1.0
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/seek_read