# | Line 9 | Line 9 | public class XMLSender { | |
---|---|---|
9 | ||
10 | if (args.length != 2) { | |
11 | System.out.println("Usage: java XMLSender <hostname> <filename.xml>"); | |
12 | + | System.exit(0); |
13 | } | |
14 | ||
15 | int port = 4589; | |
# | Line 17 | Line 18 | public class XMLSender { | |
18 | BufferedReader br = new BufferedReader(new FileReader(args[1])); | |
19 | String xml = ""; | |
20 | String line = br.readLine(); | |
20 | – | xml += line; |
21 | while (line != null){ | |
22 | – | line = br.readLine(); |
22 | xml += line; | |
23 | + | line = br.readLine(); |
24 | } | |
25 | ||
26 | // get a datagram socket |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |