| Applying science to business management |
  
read
Format: read( file )
Arguments: (text) file Name of the file to read
Returns: (text) The contents of file
Description: Read loads the contents of a file
as a single text string. The file can be broken down into a list
of records using a statement of the form tolist(read(file),"\n").
If file does not contain full path information, the
file is assumed to reside in the same directory as the .mdl or
.dsb application file. If you include path information, remember
that backslash characters must be typed twice in text literals
(e.g., "c:\\temp.txt"
instead of "c:\temp.txt").
Examples: write("Text","temp.txt")
= Text (creates the file temp.txt)
append(2+3,"temp.txt") = 5 (appends
5 to temp.txt)
read("temp.txt") = Text5
See Also: readbin,
readcsv, readtxt, readhttp, write, append, getfile
|