How to read data from binary files properly in C++ till the last data?

后端 未结 0 1812
别跟我提以往
别跟我提以往 2020-12-13 04:26

I recently learnt that to read properly from a text file we use

while(file>>var1>>var2){
//do stuff with data
}

instead of

相关标签:
回答
  • 消灭零回复
提交回复
热议问题