Next Topic   Contents   File Menu

   Read Sabrina (READ)  


Read and execute commands from the file chosen on the file selection popup (using Sabrina's READ command).

User control is suspended until the read is completed, the calculation of a picture is interrupted, or an error is detected-in which case the user is queried whether or not to continue reading.

QUIT (and END) commands have no effect when reading from a file.

The file may include other files by the use of READ or MCNP commands; input from additional files may be nested up to 5 deep.

The file is echoed in a File Listing Window as it is read if the List Files item under the Options Menu is checked. Files input by nested READ or MCNP commands are echoed in separate File Listing Windows. The lines in the file are echoed as they are processed. If an error occurs during the reading of a file, the offending line should be the last one listed.

The full file name, proceeded by 'READ,' is added to the Most Recently Used List under the File Menu.

The data section is expected in in-line MCNP input included in a Sabrina script file (.sab). Since older versions of Sabrina did not necessarily expect the data section, Existing Sabrina script files containing in-line MCNP input may need an additional blank line following the MCNP input.