It is a relatively standard c/c++ idiom - it is explained in the ifstream constructor documentation.  I don't think it needs a comment.