OpenOString |
Syntax |
OpenOString(S:STRING):DEVICE |
Description |
Example |
D := OpenOString(""); -- open a string for output from CoCoA L := [1,2,3]; -- a list Print L On D; -- print to D D; Record[Name = "", Type = "OString", Protocol = "CoCoAL"] ------------------------------- S := Cast(D, STRING); -- S is the string output to D S; -- a string [1, 2, 3] ------------------------------- Print " more characters" On D; -- append to the existing output string Cast(D, STRING); [1, 2, 3] more characters ------------------------------- |
See Also |