You use very confusing terminology, mixing "record", "line" and "block". Assuming that you consider "unit of work" boundary to be between a "block" 5 and a "block" 1, then why not simply use seek to seek to a position roughly ($file_size / $number_of_files) * $this_file and read forward until you've encountered one "block" 5? After that, the current set of "unit of work" starts.
In reply to Re: Splitting a Blocked file in Round Robin into smaller files
by Corion
in thread Splitting a Blocked file in Round Robin into smaller files
by tradersjoe0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |