MCPcopy Create free account
hub / github.com/Felixgithub2017/MMCU / read_file_lines

Function read_file_lines

TestMOSS.py:78–81  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

76 return response[len(query)+2:].replace("<eom>","").strip().rstrip()
77
78def read_file_lines(file):
79 with open(file, 'r', errors='ignore', encoding='utf8') as f:
80 lines = f.readlines()
81 return lines
82
83def writelines_to_file(file, lines):
84 with open(file, 'w', encoding='utf8') as f:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected