13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

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.

until a character was typed. With the INTERACTIVE type, the programdoesn't perform a GET until it is executing a READ or READLN. Therefore,the type INTERACTIVE is normally used for text 1/0 with any characterdevice.The WRITE and WRITELN ProceduresYou can use WRITE and WRITELN only with character files. They allowcharacters, strings, and numeric values to be written to a file as text strings,without the need for explicit PUT calls or explicit references to the file'sbuffer variable. The difference between the two procedures is that WRITEwrites only the specified text, whereas WRITELN adds a RETURNcharacter (plus a LINE FEED to a character device) at the end.The WRITE procedure is written this way:fileidentifiervaluespecifierThe WRITELN procedure has more optional parts, and is written thus:WRITELN t--~--.fileidentifiervaluespecifierIn both cases the value specifier is written like this:valueexpressionwidthexpressiondecimalplacesexpressionIII-174Chapter 10: Input/Output

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

Saved successfully!

Ooh no, something went wrong!