February 02, 2005
You are in a maze of twisty classes, all alike

Steve Rose is a very bad man. Vodka and Baileys is no drink for a man, but if (much against your will) you do drink it, you get very pissed indeed.

Anyway, we had a look at his code. He's fallen afowl of Java's laberynthine java.io. Now, I need a FileInputStream, an InputStreamReader and a BufferedReader to read a file, right? Or is that a FileReader and a BufferedReader? I've done this loads of times, and I still can't remember. It's hardly surprising that Steve can't work it all out. There really ought to be an openTheGoddamFileAlready() method somewhere...

Update: Here's how you do it in Python. Less is more.

Posted to Java by Simon Brunning at February 02, 2005 11:10 AM
Post a comment

Email Address:



Remember info?