Rainer Deyke wrote:
Something like new BufferedReader(new FileReader("foo.txt"))? It's quite unambiguous.Pelle Månsson wrote:File looks like a constructor. You are not constructing a file you open for reading."open" by itself is ambiguous. What are you opening? A window? A network port? I think the word "file" needs to be in there somewhere to disambiguate.
I'll rather have open as a file-opening function.
