@@ -13,8 +13,8 @@ There are different assignment operators to allow for read, append, etc:
1313* To open for write, simply assign a string containing the file name to it using := or >=.
1414* To open for append, use the >>= assignment operator.
1515* To open for read, use the <= assignment operator.
16- * To open a pipeline for write, use the \| = operator, the concatenation will be the command to execute.
17- * To open a pipeline for read, use the = \| operator, the concatenation will be the command to execute.
16+ * To open a pipeline for write, use the > \| = operator, the concatenation will be the command to execute.
17+ * To open a pipeline for read, use the < \| = operator, the concatenation will be the command to execute.
1818
1919The writeline and printline commands of rwloadsim do not include
2020advanced output formatting, strings are
@@ -37,7 +37,7 @@ A simple example of reading from a pipeline is:
3737file id;
3838string(1000) myid;
3939
40- id =| "id";
40+ id <|= "id";
4141readline id,myid;
4242id := null;
4343
@@ -81,7 +81,7 @@ end loop;
8181yt := null; # close the file
8282
8383# use a pipeline to read the file
84- yt =| "cat numbers.txt";
84+ yt <|= "cat numbers.txt";
8585
8686for readline yt,a,b loop # similar to read a,b in the shell
8787 printline a,b,sqrt(b);
0 commit comments