file text close

Indicates that the text file is to be closed.

Format:

 
file text close
file_name =
string

Example:

 
file text close &
file_name =
“C:\Model_Data.txt”

Description:

 
Parameter
Value Type
Description
file_name
String
Specifies the name of the input or output text file to be closed.

Extended Definition:

1. If you do not specify a file_name parameter, then the last opened, or written file is assumed. After a file has been closed, any attempts to write to it will cause an error.
2. The proper extension for file_name parameter is the default (.txt) but can be overridden by simply supplying a different extension.
You do not need to enclose the file name in quotes if it only contains alpha-numeric characters and starts with a letter. If you want to include other characters, such as a '.' for an extension or '/' or '[]' for directory paths, you must enclose the name in quotes.