Seems like this should be simple, but I don't find it in a net search.
I have an ofstream which is open()
, and fail()
is now true. I'd like to know the reason for the failure to open, like with errno
I would do sys_errlist[errno]
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…