I am taking a class right now and the teacher is wanting us to utilize the .fail function. However when I was reading your article I noticed the .is_open and in the tutorial it says it checks to see if the file is actually running, and returns a bool true value or false. I guess my basic question is does this do basically do the same thing as running and .fail function. Because both are able to have outputs saying the "program failed". Or am I reading this wrong and the is_open will just passively fail
I guess what I am cunfused on is how they both return false. do they just passively in the background do nothing or does one output have a different outcome?