added file offset in file_read