MCPcopy
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
8def readFileAsString(fileName):
9 f = open(fileName, "r")
10 s = f.read()
11 f.close()
12 return s
13
14
15def writeStringToFile(strToWrite, fileName):

Callers 1

tearDownMethod · 0.90

Calls 1

closeMethod · 0.45

Tested by 1

tearDownMethod · 0.72