Vector data is printed in ascending ID order for all active PEs. Some rudimentary formatting is performed, when printing vector data. All integer, real, boolean, or string vector data (but not vector characters) will be separated by blanks when printed. A carriage return (new line) is inserted after the end of each dimension (e.g. this will print a two-dimensional vector in matrix format).
WriteLn; Start a new line (no arguments) Write(c); Write character c WriteString(s) Write string s WriteInt(i,l); Write integer i using l print spaces (add blanks in front of the number) WriteCard(c,l); Write cardinal c using l print spaces WriteReal(r,l); Write real r using l print spaces WriteFixPt(r,l,m); Write real r using l print spaces and m decimals WriteBool(b); Write boolean bRead(c); Read character c ReadString(s) Read string s ReadInt(i); Read integer i ReadCard(c); Read cardinal c ReadReal(r); Read real r ReadBool(b); Read boolean b
The following procedures take scalar arguments only.
OpenOutput(s); Open file with name s for writing (if s is empty, then the user is prompted for a file name; following write operations write to file) CloseOutput; Close file, redirect output to stdout OpenInput(s); Open file with name s for reading (if s is empty, then the user is prompted for a file name; following read operations read from file)
CloseInput; Close file, redirect input back to stdin