SYNOPSIS
#include <tcl.h>
int Tcl_GetOpenFile(interp, string, write, checkUsage, filePtr)
ARGUMENTS
- Tcl_Interp *interp (in)
-
Tcl interpreter from which file handle is to be obtained.
- char *string (in)
-
String identifying channel, such as stdin or file4.
- int write (in)
-
Non-zero means the file will be used for writing, zero means it will be used for reading.
- int checkUsage (in)
-
If non-zero, then an error will be generated if the file wasn't opened for the access indicated by write.
- ClientData *filePtr (out)
-
Points to word in which to store pointer to FILE structure for the file given by string.
DESCRIPTION
Note that this interface is only supported on the UNIX platform.
PORTABILITY
Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. Windows Server 2025.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.5 Documentation Build 40.