2021-11-04 | Paul Boddie | file changeset files shortlog | Store integers and floating point values as trailing data. Although not yet implemented, the idea is to reference them using tagged address attributes, and then to eventually support the copying of these values. | tagged-address-values |
paul@343 | 1 | from sys import stdin |
paul@343 | 2 | |
paul@347 | 3 | print "Reading 10 bytes..." |
paul@343 | 4 | s = stdin.read(10) |
paul@343 | 5 | print s |
paul@343 | 6 | |
paul@347 | 7 | print "Reading to end of file..." |
paul@343 | 8 | s = stdin.read() |
paul@343 | 9 | print s |