RosettaCodeData/Task/User-input-Text/PostScript/user-input-text-1.ps

7 lines
189 B
PostScript
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
%open stdin for reading (and name the channel "kbd"):
/kbd (%stdin) (r) file def
%make ten-char buffer to read string into:
/buf (..........) def
%read string into buffer:
kbd buf readline