fileDescriptor function

gets the file descriptor of an object