Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why would you still want to use strace in 2023? [video]. Parent comment
You're still going to have to open it and handle the errors (in case it's the wrong permissions, or the filename is a directory, etc).
Checking if it exists doesn't make the subsequent code any easier or shorter - you still have to check for errors even if it exists.
There are no comments on this comment yet.
You're still going to have to open it and handle the errors (in case it's the wrong permissions, or the filename is a directory, etc).
Checking if it exists doesn't make the subsequent code any easier or shorter - you still have to check for errors even if it exists.