Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CadQuery/cadquery
/ readFileAsString
Function
readFileAsString
tests/__init__.py:8–12 ·
view source on GitHub ↗
(fileName)
Source
from the content-addressed store, hash-verified
6
7
8
def
readFileAsString(fileName):
9
f = open(fileName,
"r"
)
10
s = f.read()
11
f.close()
12
return
s
13
14
15
def
writeStringToFile(strToWrite, fileName):
Callers
1
tearDown
Method · 0.90
Calls
1
close
Method · 0.45
Tested by
1
tearDown
Method · 0.72