I am working on file operation in python, i found two module, What is difference between the two file operation module "open" and "file" functionality wise i found both same.
thanks.
Python 2.x documentation says it all:
When opening a file, it’s preferable to use
open()instead of invoking this constructor [file()] directly.fileis more suited to type testing (for example, writingisinstance(f, file)).
In Python 3.x, file is no longer available.