All pastes #263146 Raw Edit

Improved TPK

public text v1 · immutable
·published 2006-12-01 05:53 UTC
rendered paste body
variable fid
: open ( c-addr u -- )  r/o open-file throw fid ! ;
: close ( -- )  fid @ close-file throw ;
: read ( -- u )  here 1 fid @ read-file throw ;
: display ( -- )  here c@ emit ;

: go ( c-addr u -- )  open  begin read while display repeat  close ;