daknok·13 ปีที่แล้ว·discussYou should use try/catch; branching would imply a race condition in a multithreaded environment (what if another process deletes the file between the check and the use of the file?).