::hwat::io::CreateFile - Create a file and open it.
::hwat::io::CreateFile str_mode {str_filePath}
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. |
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.
::hwat::io::CreateFile w+ c:/mystuff/data.txt