Difference between revisions of "WriteTextFile"

m (adding doc status category stub page)
m
Line 5: Line 5:
 
[[What's new in Analytica 4.0?]] >
 
[[What's new in Analytica 4.0?]] >
  
= WriteTextFile( filename, text[[, append, warn, sep, showDialog]] ) =
+
= WriteTextFile( filename, text'', append, warn, sep, showDialog'' ) =
  
 
Writes data to a text file.
 
Writes data to a text file.
  
(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).
+
(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.
 +
 
 +
«sep» is used as a line separator when «text» contains multiple array entries.
  
 
= See also =
 
= See also =

Revision as of 23:39, 24 September 2009


What's new in Analytica 4.0? >

WriteTextFile( filename, text, append, warn, sep, showDialog )

Writes data to a text file.

(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.

«sep» is used as a line separator when «text» contains multiple array entries.

See also

Comments


You are not allowed to post comments.