0027838: Foundation Classes - support wchar_t* input within TCollection_AsciiString...
[occt.git] / src / Draw / Draw_VariableCommands.cxx
index 59e01f7..2ae9437 100644 (file)
@@ -212,7 +212,7 @@ static Standard_Integer restore(Draw_Interpretor& di, Standard_Integer n, const
   
   filebuf fic;
   istream in(&fic);
-  OSD_OpenFileBuf(fic,fname,ios::in);
+  OSD_OpenStream (fic, fname, ios::in);
   if (!fic.is_open()) {
     di << "Cannot open file for reading : "<<fname;
     return 1;