sgc2000

joined 1 year ago
[–] [email protected] 5 points 2 weeks ago

You should do both. Creation and catching of exceptions can be an expensive process and even if the check for the file succeeds the loading of the file may not in which case you'll need to handle the exceptions anyway.