31.12.2013 Views

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PROCEDURES AND FUNCTIONS<br />

Table ~-1:<br />

Predeclared Procedures (Cont.)<br />

Procedure<br />

Parameter Type<br />

----------,<br />

Action<br />

TIME(string) string = variable of<br />

type PACKED ARRAY<br />

r 1 •• 1 1 1 0 F C HA R<br />

WRITE (f ,pI, •.. ,pn) f fUe variable<br />

pl, ... ,pn write<br />

parameters<br />

WRITELN(f,pl, ... ,pn) f tex t: f i 1 e<br />

variable pl, ... ,pn<br />

w'rite paramE!ters<br />

Assigns the current<br />

time to string.<br />

Writes the values of<br />

pI through pn into<br />

the file f. At least<br />

one parameter (pI)<br />

must be specified.<br />

The default for f is<br />

OUTPUT.<br />

Performs the WRITE<br />

procedure, then<br />

skips to the<br />

beginning of the<br />

next line. The write<br />

parameters are<br />

optional. The<br />

default for f is<br />

OUTPUT.<br />

6.1.1.1 Input/Output Procedures - The <strong>PASCAL</strong><br />

procedures are:<br />

input and output<br />

• CLOSE - Section 7.4<br />

•<br />

FIND - SE'ction 7.5<br />

•<br />

GET - Section 7.0<br />

•<br />

•<br />

OPEN - Section 7.8<br />

•<br />

PAGE - Section 7.9<br />

•<br />

PUT - Section 7.10<br />

• READ - Section 7.11<br />

•<br />

READLN - Section 7.12<br />

•<br />

RESET - Section 7.13<br />

• REWRITE - Section 7.14<br />

•<br />

WRITE - Section 7.15<br />

LINELIMI'I' - Section 7.7<br />

• WRITELN -, Section 7.16<br />

6-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!