HyperWorks Tools

::hwat::io::CreateTempFile

::hwat::io::CreateTempFile

Previous topic Next topic No expanding text in this topic  

::hwat::io::CreateTempFile

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::io::CreateTempFiles - Create a temp file with user specified extension and location.

 

SYNTAX

::hwat::io::CreateTempFile [extension] [location]{b_protected}

 

ARGUMENTS

[extension]

File extension for file(default {})

[location]

Location for file(default {})

b_protected

[OPTIONAL] set to TRUE to protect the scratch from the CleanupTempFiles operation. default = FALSE.

 

RETURNS

Success -> {str_fh file_handle str_filename file_name}

Failure -> {}

 

Where,

File_handle = the actual handle to the open file.

File_name = the actual name of the newly created file.

 

EXAMPLE

::hwat::io::CreateTempFile TRUE

::hwat::io::CreateTempFile tmp C:/temp TRUE

 

 

See also

::hwat::io::CleanupTempFiles

I/O Functions