MCPcopy Index your code
hub / github.com/geekcomputers/Python / readfile

Function readfile

check_file.py:25–31  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

23
24# Readfile Functions which open the file that is passed to the script
25def readfile(filename):
26 with open(filename, "r") as f: # Ensure file is correctly closed under
27 read_file = f.read() # all circumstances
28 print(read_file)
29 print()
30 print("#" * 80)
31 print()
32
33
34def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected