summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc14
1 files changed, 6 insertions, 8 deletions
diff --git a/test.toc b/test.toc
index 79eb3b3..6f17a38 100644
--- a/test.toc
+++ b/test.toc
@@ -2,12 +2,10 @@
#include "std/base.toc", base;
main ::= fn() {
- file, err := io.fopen_write("test.txt");
- if err {
- base.error("Couldn't open file!");
- }
- for i := 1..100000000 {
- io.fputs(file, "Hello");
- }
- io.fclose(file);
+ s: [64]char;
+ buf := s[:];
+ io.writes("What is your name? ");
+ io.gets(&buf);
+ io.writes("Hello, ");
+ io.puts(buf);
}