Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/gto76/python-cheatsheet
/ readFile
Function
readFile
parse.js:942–948 ·
view source on GitHub ↗
(filename)
Source
from the content-addressed store, hash-verified
940
// UTIL
941
942
function
readFile(filename) {
943
try {
944
return
fs.readFileSync(filename,
'utf8'
);
945
} catch(e) {
946
console.error(
'Error:'
, e.stack);
947
}
948
}
949
950
function
writeToFile(filename, text) {
951
try {
Callers
2
main
Function · 0.85
getMd
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected