+void eConsoleAppContainer::dumpToFile( PyObject *py_filename )
+{
+ char *filename = PyString_AsString(py_filename);
+ filefd[1] = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0644);
+ eDebug("eConsoleAppContainer::dumpToFile open(%s, O_WRONLY|O_CREAT|O_TRUNC, 0644)=%i", filename, filefd[1]);
+}
+
+void eConsoleAppContainer::readFromFile( PyObject *py_filename )
+{
+ char *filename = PyString_AsString(py_filename);
+ char readbuf[32*1024];
+ filefd[0] = open(filename, O_RDONLY);
+ int rsize = read(filefd[0], readbuf, 32*1024);
+ eDebug("eConsoleAppContainer::readFromFile open(%s, O_RDONLY)=%i, read: %i", filename, filefd[0], rsize);
+ if ( filefd[0] > 0 && rsize > 0 )
+ write(readbuf, rsize);
+}
+