At this point, you would need to show the code as it currently stands (so we know where you've put the "endRead" call), and it would help to tell us what the error message is. Don't tell is what you think it did (or didn't do) - show us what it actually did (copy/paste the error messages).