loadFile: This function loads the file and reads its lines.
(fileName)
| 49 | |
| 50 | |
| 51 | def loadFile(fileName): |
| 52 | """ |
| 53 | loadFile: This function loads the file and reads its lines. |
| 54 | """ |
| 55 | global lines |
| 56 | fo = open(fileName) |
| 57 | for line in fo: |
| 58 | lines.append(line) |
| 59 | fo.close() |
| 60 | |
| 61 | |
| 62 | def scanner(string): |