26.12.2012 Views

ICAM Virtual Machine V19 - Kxcad.net

ICAM Virtual Machine V19 - Kxcad.net

ICAM Virtual Machine V19 - Kxcad.net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ICAM</strong> <strong>Virtual</strong> <strong>Machine</strong> ® <strong>Virtual</strong> <strong>Machine</strong> Reference, Model Customization<br />

Simulation Macro Functions, File and Directory Functions<br />

The $FEOF Function<br />

result=$FEOF(n)<br />

Returns: Logical<br />

This function returns the end-of-file status of unit n. A status of $TRUE is returned if the specified<br />

unit is at the end-of-file mark. $FEOF should be used to check the end-of-file status of a text<br />

file unit before reading from that file. If the unit specified has not been opened using the OPEN<br />

command, an error will be output.<br />

The $FGETCWD Function<br />

result=$FGETCWD( )<br />

Returns: String<br />

This function returns a string set to the current working directory name a. The current working<br />

directory is typically the directory from which the post-processor was run. File names that<br />

exclude a directory component are assumed to be located in the default (or current) working<br />

directory. The syntax is as follows.<br />

path_string=$FGETCWD()<br />

The $FSETCWD Function<br />

result=$FSETCWD(s)<br />

Returns: String<br />

This function changes the current working directory, and returns a string set to the new current<br />

working directory defined by string s. By default, file names that exclude a directory component<br />

are assumed to be in the default (or current) working directory. The syntax is as follows:<br />

path_string=$FSETCWD(path_string)<br />

The $FSTAT Function<br />

result=$FSTAT(s1,s2)<br />

Returns: Numeric<br />

This function returns various statistics about the specified file or directory defined by string s1.<br />

The syntax is as follows:<br />

real=$FSTAT(path_string, type_string)<br />

178 <strong>ICAM</strong> Technologies Corporation – Proprietary

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!