Difference between revisions of "ReadTextFile"

 
Line 1: Line 1:
 
[[category:System Functions]]
 
[[category:System Functions]]
 
[[category:Database Functions]]
 
[[category:Database Functions]]
 +
 +
= ReadTextFile( filename'', showDialog ) =
  
 
Reads the contents of a text file into a text string.
 
Reads the contents of a text file into a text string.
  
{{stub}}
+
The optional parameter, ''showDialog'' (new to 4.0) controls whether the file dialog appears.  If not specified, then the dialog appears only if the file does not exist.  To prevent this from showing (displaying an error instead) specify showDialog as false.  To force the dialog to display, even if the file exists (i.e., as a way to give the user a chance to change the filename, while still providing a default name), specify showDialog as true.
 +
 
 +
From ADE, the dialog is never displayed.
  
 
= See Also =
 
= See Also =

Revision as of 23:20, 30 March 2007


ReadTextFile( filename, showDialog )

Reads the contents of a text file into a text string.

The optional parameter, showDialog (new to 4.0) controls whether the file dialog appears. If not specified, then the dialog appears only if the file does not exist. To prevent this from showing (displaying an error instead) specify showDialog as false. To force the dialog to display, even if the file exists (i.e., as a way to give the user a chance to change the filename, while still providing a default name), specify showDialog as true.

From ADE, the dialog is never displayed.

See Also

Comments


You are not allowed to post comments.