Exceptions or error codes for handling file i/o errors?

前端 未结 0 826
眼角桃花
眼角桃花 2021-01-05 11:31

I am writing a method for a class, which reads from a file and checks for errors, as such:

void my_class::load_file()
{
    ifstream file("file.txt"         


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