Since this is part of an assignment, why don't I just give the pseudocode.
In reply to Re: IO::File Question by ikegami in thread IO::File Question by chinamox