Coffeehouse Post

Single Post Permalink

View Thread: Reading int from file in C#
  • User profile image

    @magicalclick, I've tried Read() and it gets a single char, the problem with this and the ReadBlock() approach is that I actually don't know the length of each number and they could differ in length. I could certainly just read the entire line and the break it up using space but that wouldn't be as elegant as the C++ solution.