Exemple #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)
Exemple #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)
Exemple #3
0
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)
Exemple #4
0
 def close(self):
     self.fileObj.close()
     #clean up the parent class too....
     FileIO.close(self)
Exemple #5
0
 def close(self):
     self.fileObj.close()
     FileIO.close(self)
Exemple #6
0
 def __init__(self, *args, **kwargs):
     FileIO.__init__(self, *args, **kwargs)
     self.fileObj = open(self.dataPath, self.mode)
Exemple #7
0
 def close(self):
     self.fileObj.close()
     #clean up the parent class too....
     FileIO.close(self)
Exemple #8
0
 def close(self):
     self.fileObj.close()
     FileIO.close(self)