MCPcopy Create free account
hub / github.com/geekcomputers/Python / loadFile

Function loadFile

Assembler/assembler.py:51–59  ·  view source on GitHub ↗

loadFile: This function loads the file and reads its lines.

(fileName)

Source from the content-addressed store, hash-verified

49
50
51def 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
62def scanner(string):

Callers 1

mainFunction · 0.85

Calls 2

appendMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected