Modified file download example

This commit is contained in:
GideonLeGrange 2014-01-29 11:08:34 +02:00
parent afe511b593
commit 500fa4c699
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ public class Example7 extends Example {
private void test() throws MikrotikApiException, InterruptedException {
con.execute("/export file=conf");
List<Map<String, String>> res = con.execute("/file/print detail where name=conf.rsc");
con.execute("/file/remove conf.rsc");
String text = res.get(0).get("contents");
for (String line : text.split("\r")) {
System.out.println(line);