HyperWorks Tools

::hwat::io::CreateFile

::hwat::io::CreateFile

Previous topic Next topic No expanding text in this topic  

::hwat::io::CreateFile

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

NAME

::hwat::io::CreateFile - Create a file and open it.

 

SYNTAX

::hwat::io::CreateFile str_mode {str_filePath}

 

ARGUMENTS

str_mode

Mode argument.  Can be any valid Tcl open mode.

str_filePath

[OPTIONAL] argument to serve as the path for the file.  Without, just opens a temp file.

 

RETURNS

Success -> [list str_fh $str_fh str_fileName $str_filePath]

Failure -> {}

Where,

$str_fh = actual file handle to file.

$str_filePath = actual file name/path.

 

EXAMPLE

::hwat::io::CreateFile w+ c:/mystuff/data.txt

 

 

See also

::hwat::io::CreateTempFile

I/O Functions