(String source, String needle)
| 381 | } |
| 382 | |
| 383 | private String findBlock(String source, String needle){ |
| 384 | int start =source.indexOf("<"+needle+">"); |
| 385 | int end = source.indexOf("</"+needle+">"); |
| 386 | if (start<0 || end<0) |
| 387 | return null; |
| 388 | |
| 389 | return source.substring(start+3, end); |
| 390 | } |
| 391 | |
| 392 | private String loadFile() { |
| 393 | FileIO f=FileIO.createConnection(file); |