1. Read for N lines reads sequentially, doesn't need an offset.
2. You could instead try to do that in one strike:
put url ("file:"&<filepath>) into str
filter str with "<td class='code'>*"
typical line for further extracting:
<td class='code'><a href='#1f600' name='1f600'>U+1F600</a></td>