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

7 lines
189 B
PostScript
Raw Permalink Normal View History

2023-07-01 11:58:00 -04: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