> Q: is using static_cast<> as mentioned above sane? or is there > a more appropriate EOF to use? traits_type::eof() see chapter 21, strings for more on char_traits -benjamin