WriteTextFile
What's new in Analytica 4.0? >
WriteTextFile( filename, text, append, warn, sep, showDialog )
Writes text to a file with name filename.
If the file exists, and append is true, it appends the text to the file. If it doesn't exist, it asks whether to create it. If append is false, and the file exists, if warn is true, it gives a warning to ask if you want to overwrite the file. If
(new to 4.0) The optional «showDialog» flag controls whether the file dialog displays. If not specified, then the dialog appears if the indicated filename is a directory, a read-only file, or if it exists and warn is true. When «showDialog» is true, the dialog displays, using the indicated filename as a default value but allowing the user to change it. When false, the dialog is suppressed in all cases (usually meaning an error is issued instead).
Setting «append» to true appends to the end of an existing file.
Setting «warn» to false suppresses the warning about the file already existing.
It uses «sep» as a line separator between elements when «text» is an array.
If «showdialog» is true, it always opens a dialog before creating the file, so user can change file name and select folder. If false, it suppresses the dialog in all cases.
Enable comment auto-refresher