--- experimental/server/XMLReader/XMLSender.java 2000/11/17 12:16:39 1.2 +++ experimental/server/XMLReader/XMLSender.java 2000/11/17 15:04:05 1.4 @@ -9,6 +9,7 @@ public class XMLSender { if (args.length != 2) { System.out.println("Usage: java XMLSender "); + System.exit(0); } int port = 4589; @@ -17,10 +18,9 @@ public class XMLSender { BufferedReader br = new BufferedReader(new FileReader(args[1])); String xml = ""; String line = br.readLine(); - xml += line; while (line != null){ - line = br.readLine(); xml += line; + line = br.readLine(); } // get a datagram socket