Original Post
hello, I have this stu... problem which's reason I can not find. #include #include using namespace std; ... ifstream bmpsource(path,ios::in,ios::binary); long width=0; char c='l'; bmpsource.get(c); // here I get the first character in file successfuly while (bmpsource >> width) width++; ... I successfuly get the first character in file by bmpsource.get(c) but the problem is that program never enters while cycle body.The file is large enough. Why >> operator fails? This is the only code where I use iostream library. There is no relevant code around it. Please tell me somebody why this st.. >> operator fails. Where are the good old times of stdio?