readfile
Reads a workspace file and returns its contents as a string.
Signature
readfile(path: string): stringParameters
pathstringPath to the file.
Returns
string
Example
writefile("note.txt", "hello")
print(readfile("note.txt")) --> helloReads a workspace file and returns its contents as a string.
readfile(path: string): stringpathstringPath to the file.
string
writefile("note.txt", "hello")
print(readfile("note.txt")) --> hello