OpenIString |
Syntax |
OpenIString(S: STRING, T: STRING): DEVICE OpenOString(S: STRING): DEVICE |
Description |
Example |
S := "hello world"; D := OpenIString("", S); -- open the string S for input to CoCoA L := Get(D,7); -- read 7 characters from the string L; -- ASCII code [104, 101, 108, 108, 111, 32, 119] ------------------------------- ascii(L); -- convert ASCII code to characters hello w ------------------------------- Close(D); -- close device D |
See Also |