7. The method of claim 6 , wherein the tree pattern is defined by using extensible markup language (XML), and the character string patterns are defined by using regular expressions.
6. A computer-implemented method being executed by a processor of a computing device for parsing a text file, the method comprising: defining a tree pattern based on the text file, and defining a plurality of character string patterns to identify the desired data; loading the text file into an array, wherein each line of the text file is an element of the array; locating one or more text blocks of the text file to determine a tree structure corresponding to the text file according to the tree pattern, and retrieving the desired data from the text file according to the tree structure corresponding to the text file and the character string patterns; and outputting the retrieved desired data into a storage system.