root/NEWT0/trunk/sample/cat.newt
| Revision 8, 190 bytes (checked in by gnue, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | #!newt |
| 2 | |
| 3 | Require("protoFILE"); |
| 4 | |
| 5 | |
| 6 | foreach path in _ARGV_ do |
| 7 | begin |
| 8 | file := {_proto: @protoFILE}; |
| 9 | |
| 10 | file:open(path, "r"); |
| 11 | while line := file:gets() do print(line); |
| 12 | file:close(); |
| 13 | end; |
| 14 | |
| 15 | |
| 16 | true; |
Note: See TracBrowser
for help on using the browser.
