MCPcopy Index your code
hub / github.com/gto76/python-cheatsheet / read_file

Function read_file

web/update_plots.py:106–109  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

104
105
106def read_file(filename):
107 p = Path(__file__).resolve().parent / filename
108 with open(p, encoding='utf-8') as file:
109 return file.readlines()
110
111
112def write_to_file(filename, lines):

Callers 1

update_fileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected