03-26-2015, 12:57 PM
Thank you so much :D
I just guessed my casual stream reader would work the same, which it obviously didn't. And upon discovering it doesn't return -1 on end I looked up how to use it and the samples all had peek for the while condition.
(03-26-2015, 12:40 PM)Someone else Wrote: Your code is wrong. [...] calling both Peek() and Read() is both redundant and slowDamn you msdn docs, damn you!
I just guessed my casual stream reader would work the same, which it obviously didn't. And upon discovering it doesn't return -1 on end I looked up how to use it and the samples all had peek for the while condition.
(03-26-2015, 12:40 PM)Someone else Wrote: I would also like to add than C♯ is a dumb language, and that C++ is way better.Well aware. This is just what I'm working with most of the time now and easiest to dive into coming from java. Also I intend not to get my hands dirty on crazy hacks.

Chat
