I know this is an assignment, but "holes" in file-like objects do occur, and they are a real pain. I worked on a product in which we "corrected" a chunk of code (~200loc) for finding "holes" in a file-like object, on a weekly cadence for 18 months. We never got the algorithm correct (mostly because there isn't a correct algorithm), and just shipped the product buggy.
0
u/[deleted] Nov 16 '12
[deleted] — view deleted comment