Commit | Line | Data |
---|---|---|
5bd13011 BJ |
1 | UNIX Pascal PI -- Version 1.0 (September 8, 1977) |
2 | ||
3 | Fri Sep 9 18:49 1977 copydata.p | |
4 | ||
5 | \0\0\0\0\01\0\0program copydata(data, output); | |
6 | \0\0\0\0\02\0\0var | |
7 | \0\0\0\0\03\0\0\0\0\0\0ch: char; | |
8 | \0\0\0\0\04\0\0\0\0\0\0data: text; | |
9 | \0\0\0\0\05\0\0begin | |
10 | \0\0\0\0\06\0\0\0\0\0\0reset(data); | |
11 | \0\0\0\0\07\0\0\0\0\0\0while not eof(data) do begin | |
12 | \0\0\0\0\08\0\0\0\0\0\0\0\0\0\0while not eoln(data) do begin | |
13 | \0\0\0\0\09\0\0\0\0\0\0\0\0\0\0\0\0\0\0read(data, ch); | |
14 | \0\0\0\010\0\0\0\0\0\0\0\0\0\0\0\0\0\0write(ch) | |
15 | \0\0\0\011\0\0\0\0\0\0\0\0\0\0end; | |
16 | \0\0\0\012\0\0\0\0\0\0\0\0\0\0readln(data); | |
17 | \0\0\0\013\0\0\0\0\0\0\0\0\0\0writeln | |
18 | \0\0\0\014\0\0\0\0\0\0end | |
19 | \0\0\0\015\0\0end { copydata }. | |
20 | Execution begins... | |
21 | line one. | |
22 | line two. | |
23 | line three is the end. | |
24 | Execution terminated | |
25 | 134\0statements executed in 0.04 seconds cpu time |