MCPcopy Create free account
hub / github.com/ElementsProject/elements / read_file_lines

Function read_file_lines

contrib/devtools/copyright_header.py:322–326  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

320################################################################################
321
322def read_file_lines(filename):
323 f = open(filename, 'r', encoding="utf8")
324 file_lines = f.readlines()
325 f.close()
326 return file_lines
327
328def write_file_lines(filename, file_lines):
329 f = open(filename, 'w', encoding="utf8")

Callers 2

exec_insert_headerFunction · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected