[Tutor] quick question to open(filename, 'r') vs. file(filename, 'r')

Larry Riedel Larry at Riedel.org
Tue May 5 23:35:26 CEST 2009


It may not be a good reason, but I like that "open"
is preferred, because in Java a "File" object is not
a stream for the content in the file, just its directory
entry, and simply creating a File object does not
open the file at all.


Larry


More information about the Tutor mailing list