Category python-file-methods

Python file fileno() method

Python File fileno() Method The fileno() method returns an integer file descriptor, which is used by the underlying implementation to request I/O operations from the operating system. Syntax The syntax of the fileno() method is as follows: fileObject.fileno() Parameters NA…

Python file seek() method

Python File seek() Method The seek() method sets the current file position to an offset. The whence parameter is optional and defaults to 0, indicating absolute file positioning. Other values are 1 for relative positioning relative to the current position,…