The member function is_open can be used to determine whether the stream object is currently associated with a file.
Previous Question Next Question
Your comments will be displayed only after manual approval.