OpenIFile |
Syntax |
OpenIFile(S:STRING):DEVICE |
Description |
Example |
D := OpenOFile("my-test"); -- open "my-test" for output from CoCoA Print "hello world" On D; -- print string into "mytest" Close(D); D := OpenIFile("my-test"); -- open "my-test" for input to CoCoA Get(D,3); -- get the first three characters (in Ascii code) [104, 101, 108] ------------------------------- Ascii(It); -- convert the ascii code into characters hel ------------------------------- Close(D); |
See Also |