Thanks for revisiting this! >What about returning numeric_limits<streamsize>::max() in such cases? I think this sounds like the most sense, given the constraints. -benjamin