previous next |
Get |
Syntax |
Get(D:DEVICE,N:INT):LIST of INT |
Summary |
read characters from a device |
Description |
This function reads N characters from D and returns the list of their ascii codes. |
Example |
D := OpenIFile('io.pkg'); -- open the file 'io.pkg' Get(D,10); -- get the first 10 characters [45, 45, 32, 105, 111, 100, 101, 118, 46, 112] ------------------------------- Ascii(It); convert the ascii code to characters -- iodev.p ------------------------------- Ascii(Get(D,10)); -- get the next 10 characters and convert kg : 0.1 : ------------------------------- Close(D); |
See also: |