Esempio n. 1
0
    def __init__(self, *args, **kwargs):
        # initialize the parent class...
        FileIO.__init__(self, *args, **kwargs)
        # this gives you:
        # self.dataPath == the connection string or path to file
        # self.mode == the mode the file should be opened in

        self.fileObj = open(self.dataPath, self.mode)
Esempio n. 2
0
    def __init__(self, *args, **kwargs):
        # initialize the parent class...
        FileIO.__init__(self, *args, **kwargs)
        # this gives you:
        # self.dataPath == the connection string or path to file
        # self.mode == the mode the file should be opened in

        self.fileObj = open(self.dataPath, self.mode)
Esempio n. 3
0
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)
Esempio n. 4
0
 def close(self):
     self.fileObj.close()
     #clean up the parent class too....
     FileIO.close(self)
Esempio n. 5
0
 def close(self):
     self.fileObj.close()
     FileIO.close(self)
Esempio n. 6
0
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)
Esempio n. 7
0
 def close(self):
     self.fileObj.close()
     #clean up the parent class too....
     FileIO.close(self)
Esempio n. 8
0
 def close(self):
     self.fileObj.close()
     FileIO.close(self)