Yes, C++ function. std::ifstream.good() works fine, just wondering if there was a foamy alternative available.
A note aside: the foamy alternatives to modern starndard library equivalents are somewhat surprising at places. I suppose that if you are a pioneer, then it's inevitable that it shows in the implementation in retrospect..