Maybe it's just me again, but readsome never seems to actually read anything, and always returns 0. For example:
If I run that example, I get no output at all (it breaks the first time the loop runs). This isn't really a problem (I can just use read() and gcount()), but I was wondering if it's really broken, or if I'm somehow doing something wrong (using VS .NET 2003 btw).Code:#include <iostream> #include <fstream> int main() { std::ifstream in("test.txt"); //test.txt exists and contains text if (!in.good()) std::cout<<"Error opening file!"; char buf[11]={0}; while (true) { int count = in.readsome(buf,10); if(!count) break; std::cout<<count<<' '<<buf<<std::endl; } }