Keep opening files until you can't.