Changed from BufferedReader/BufferedWriter to
DataInputStream/DataOutputStream.