fileDescriptor
returns the underlying file descriptor, a simple integer, not a FILE
object (which wraps a file descriptor, but isn't the same thing). Use fdopen()
to obtain a FILE
object from the file descriptor:
FILE *file = fdopen([filehandle fileDescriptor], "r"); // Create a read-only FILE object