Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

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

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend