wildfire1982 Posted December 3, 2003 Posted December 3, 2003 Hello, Just a quicky, i have been using the streamreader to read files and now i really need to know when it has reached the end of file instead of relying on the input being nothing. this is because i have come accross bugs where a function terminates on a carriage return. Any ideas? Cheers Quote Chris
wildfire1982 Posted December 3, 2003 Author Posted December 3, 2003 I had an idea in the end. I used the peek funtion i.e. loop until fileReader.peek = -1 Quote Chris
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.