Add touch utility

This commit is contained in:
joachimschmidt557 2019-03-27 12:14:34 +01:00
parent 20f776b4bd
commit 049289f452
4 changed files with 20 additions and 5 deletions

View file

@ -4,7 +4,7 @@ import common
proc catFile(file:string) =
if not existsFile(file):
echo "cat: " & file & ": No such file or directory"
return
system.quit 1
var s = newFileStream(file, fmRead)
while not s.atEnd:
write(stdout, s.readChar)