previous next top contents index framed top this page unframed
The device MODULE MEM maintains a file in memory. A MEM file is distinguished by the name of the file when it is opened. MEM file names are prefixed with the STRING:
"MEM" & $devModBrkStr
e.g., MEM>xxx if $devModBrk is > (xxx may be omitted). Case is ignored in the device MODULE prefix.
MEM files are extended as necessary. Extending a MEM file too far may exhaust MAINSAIL's address space. MEM files are always deleted when closed, whether or not the delete bit is set in the call to close.
Two MEM files with the same name but opened with different calls to open are distinct files and do not contain the same data.
MEM can handle different buffer sizes. Its argument is the buffer size (in number of characters); e.g., a file name can be specified as:
"MEM(2048)" & $devModBrkStr & "foo.msl"
to make MEM's memory buffers be 2048 characters. The default buffer size is 4096.
MAINSAIL Utilities User's Guide, Chapter 22