diff options
Diffstat (limited to 'test.uwu')
-rw-r--r-- | test.uwu | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -1,9 +1,31 @@ main flow:linear( io:print("please enter something:"), io:print(io:scan), + io:print(:str:cat( "your input: ", io:scan("please enter something else: ") )), + + io:print(:nil:nil), + io:print("--- QUINE ---"), + io:print(fs:read("test.uwu")), + io:print("--- END OF QUINE ---"), + io:print(:nil:nil), + + fs:write("test", "hello world"), + :bool:if(fs:exists("test"), + io:print("successfully wrote file"), + flow:error("failed to write file") + ), + + io:print(fs:read("test")), + + fs:remove("test"), + :bool:if(fs:exists("test"), + flow:error("failed to remove file"), + io:print("successfully removed file") + ), + "success" ) |