summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc8
1 files changed, 6 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index 536cf34..48c31a6 100644
--- a/test.toc
+++ b/test.toc
@@ -2,8 +2,12 @@
#include "std/mem.toc";
main ::= fn() {
- for i, v : (float, int) = 10,-1,.0 {
- io.puti(i as int);
+ file, err := io.fopen_write("test.txt");
+
+ for i := 0.,1000000 {
+ io.fputs(file, "!");
}
+
+ io.fclose(file);
}
main();