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 />

4.4.5.11 File and Directory Functions<br />

$FACCESS Get file access information<br />

$FBASNAM Return file name portion of path string<br />

$FCTIME Convert numeric value to date and time string<br />

$FDIRNAM Return directory portion of path string<br />

$FEOF Test for end-of-file<br />

$FGETCWD Return current working directory<br />

$FSETCWD Set current working directory<br />

$FSTAT Get file status information<br />

To access a file in the post-processor or control emulator internal File Storage, specify an absolute<br />

file path using an “//<strong>ICAM</strong>FS/” universal file descriptor (e.g., “//<strong>ICAM</strong>FS/toolno.dat”). Files<br />

in the internal File Storage area are read-only.<br />

The $FACCESS Function<br />

result=$FACCESS(s[,n])<br />

Returns: Logical<br />

This function returns $TRUE if the specified file or directory named identified by the string s can<br />

be accessed. By default the file is tested for both READ and WRITE access rights, but a specific<br />

access type can be checked by specifying an access mode value n. The $FACCESS function<br />

returns $FALSE if the specified name is invalid or does not exist, or the file does not support the<br />

access rights. The syntax is as follows.<br />

logical=$FACCESS(path_string [, mode])<br />

The following values are supported for mode n. Note that Windows file systems cannot differentiate<br />

the “run” mode type:<br />

0 File exists?<br />

1 File can be run?<br />

2 File can be written?<br />

3 File can be written or run?<br />

4 File can be read?<br />

5 File can be read or run?<br />

6 File can be written or read? (default)<br />

7 File can be written, read or run?<br />

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

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

Saved successfully!

Ooh no, something went wrong!