root/NEWT0/trunk/sample/cat.newt

Revision 8, 190 bytes (checked in by gnue, 4 years ago)

change _ARGV_ rule
change sample "cat.newt" for _ARGV_

Line 
1#!newt
2
3Require("protoFILE");
4
5
6foreach path in _ARGV_ do
7begin
8    file := {_proto: @protoFILE};
9
10    file:open(path, "r");
11    while line := file:gets() do print(line);
12    file:close();
13end;
14
15
16true;
Note: See TracBrowser for help on using the browser.