New course! Every coder should learn Generative AI!
Try a free lesson0
Is it correct to use a try catch block when trying to read files?
3 Answers
+ 1
yes, not only for the case of not existence, but for other file related exceptions.
0
yes
0
Yes.....In case the file does not exist.