write lazy word reader to handle long text files