Logo Search packages:      
Sourcecode: uicilibris version File versions  Download package

def uicilibris::wikiParser::txtFileCacher::read_file_to_lines (   self,
  filename,
  fileObj = None,
  encoding = None 
)
read file
@param filename the name of the file to read
@param fileObj an already open file objet if it is given
@param encoding triggers some specific encoding if different from None
@return the lines read from this file

Definition at line 214 of file wikiParser.py.

                                                                       :
        """
        read file
        @param filename the name of the file to read
        @param fileObj an already open file objet if it is given
        @param encoding triggers some specific encoding if different from None
        @return the lines read from this file
        """
        if not fileObj:
            f = open(filename, "r")
            lines=lineJoiner(f, encoding).getLines()
            f.close()
        else:
            lines=lineJoiner(fileObj, encoding).getLines()
            self.addLines(filename, lines)

        return lines


Generated by  Doxygen 1.6.0   Back to index