view src/ploki/examples/write.pk @ 12296:042127c1c142 draft

<fizzie> ` rm /hackenv/bin/bfi; ln -s /hackenv/lib/kps/bfi /hackenv/bin/bfi # no need for actual copies that you can forget to delete though
author HackEso <hackeso@esolangs.org>
date Sat, 04 Jan 2020 13:28:36 +0000
parents ac0403686959
children
line wrap: on
line source

#!../ploki
LET fname "foo.txt"
LET fh @SAPERS fname
IF @NOT @IO-P fh
  WUNT "\Vfname: \V\!\n"
  END -1
FI
WUNT fh, (\ENV"USER"_" ("_\ENV"HOME"_") "_\ENV"PWD"_"\n"_\?_"\n")
CLAUDS fh
IF \_
  WUNT "\Vfname: \V\!\n"
  END -1
FI