diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-18 09:06:34 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-18 09:09:00 -0700 |
commit | 4de96970f192bc2226250e52d1366e985db90ab5 (patch) | |
tree | 652073f7f234990d954724b0e896a92f75e51595 /real_files.mu | |
parent | 51ae6e61e2d14354e66b95cc028b8d1ebddfdc74 (diff) | |
download | mu-4de96970f192bc2226250e52d1366e985db90ab5.tar.gz |
3400
Undo commit 3340. Let's standardize names of non-core files to only have dashes. That's also consistent with the edit/ and sandbox/ apps. Mu programmers will tend to pervasively use dashes, just like Lisp programmers. Scripts will continue to use underscores..
Diffstat (limited to 'real_files.mu')
-rw-r--r-- | real_files.mu | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/real_files.mu b/real_files.mu deleted file mode 100644 index 78108fbe..00000000 --- a/real_files.mu +++ /dev/null @@ -1,18 +0,0 @@ -# example program: read a character from one file and write it to another -# BEWARE: this will modify your file system -# before running it, put a character into /tmp/mu-x -# after running it, check /tmp/mu-y - -def main [ - local-scope - f:num/file <- $open-file-for-reading [/tmp/mu-x] - $print [file to read from: ], f, 10/newline - c:char, eof?:boolean <- $read-from-file f - $print [copying ], c, 10/newline - f <- $close-file f - $print [file after closing: ], f, 10/newline - f <- $open-file-for-writing [/tmp/mu-y] - $print [file to write to: ], f, 10/newline - $write-to-file f, c - f <- $close-file f -] |