How to make this FILE process in Python? The Standard Input, Standard Output are the two fileobjects genrally accessible from the operating system provided interfaces which allows us to change files. How to redirect this output... normally output is coming from print command in the Python. Can you send the data/text to a file? Yes we can using file object. File IO Process in Python The file open modes Python file open modes are same as C language by default it will be open in read mode. The open() method returns a file object or file pointing reference. Syntax: fileobject = open(file_name [, access_mode][, buffering]) where basic file operational mode can be 'r' (read), 'w'(write) or 'a'(append). The default mode is 'r' that is read mode and the file can be ANSI Text file or binary file (b). They can be opened in combined mode ‘rb+’ That every file that you opened in the code must be closed. The close() method closes an ope...
Learn from the learners, learning is forever - Life is short it need Python programming !!!