implement an open for an fstream