INTERFACEBuf ; IMPORT M3Scanner; TYPE T = M3Scanner.Buf; (* == REF ARRAY OF CHAR *) PROCEDURE FromFile (path: TEXT; pad: CARDINAL := 0): T;
Read and return the entire contents of the file named bypath
withpad
bytes of zero appended. If an error occurs,NIL
is returned.
PROCEDURE FromText (txt: TEXT): T;
Return the contents of 'txt' as a buffer
END Buf.