u/lordlodin r/C_Programming • Recommends
On “Potential Errors For File I/O”
There is a lot that could go wrong, it is one of those crazy complicated areas that gets worse the deeper you go.
I saw this talk live several years ago. In 40 minutes he covers safely saving a file in Linux and MacOS, Windows wouldn't fit in the time. Note that there are several corrections from Linus and Tridge in the audience because even after preparing the talk there were complications he had missed.
link to this video