From 4989f1d2833d29aaed8a2a42a016435b8d8e5b6f Mon Sep 17 00:00:00 2001 From: Ivan Olexyn Date: Thu, 18 Jun 2020 10:45:53 +0200 Subject: [PATCH] + doc. --- src/com/olexyn/ensync/Tools.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/com/olexyn/ensync/Tools.java b/src/com/olexyn/ensync/Tools.java index 2003279..042f39d 100644 --- a/src/com/olexyn/ensync/Tools.java +++ b/src/com/olexyn/ensync/Tools.java @@ -62,6 +62,15 @@ public class Tools { return lines; } + public String fileToString(File file){ + List lineList = fileToLines(file); + StringBuilder sb = new StringBuilder(); + for (String line : lineList){ + sb.append(line).append("\n"); + } + return sb.toString(); + } + public Map mapMinus(Map fromA, Map substractB) {