lang/interpret_test/TestAstFunc2/deploy-readfile4.txtar
raw| 1 | -- metadata.yaml -- |
| 2 | #files: "files/" # these are some extra files we can use (is the default) |
| 3 | -- main.mcl -- |
| 4 | import "deploy" |
| 5 | |
| 6 | $f1 = "/files/file1" |
| 7 | |
| 8 | # the readfileabs method shouldn't be used often, it's here for testing... |
| 9 | $x1 = deploy.readfileabs($f1) |
| 10 | |
| 11 | # hide the newlines from our output |
| 12 | test "${x1}" {} |
| 13 | -- files/file1 -- |
| 14 | This is file1 in the files/ folder. |
| 15 | -- OUTPUT -- |
| 16 | Vertex: test[This is file1 in the files/ folder. |
| 17 | ] |