Dealing with pointers that haven’t been created yet To determin if the pointer myFile has been created use (for instance can be useful when trying to say close a file in an error handler if its been created): if (myFile != nullptr)