package net.hive.controller;

import java.io.*;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;


/**
 * Created by kharlashkin on 03.03.2017.
 *
 */
class FileWorker {
    String readUsingFiles(String fileName) throws IOException {
        Path path = Paths.get(fileName);
        Scanner scanner = new Scanner(path);
        // 
        while (scanner.hasNextLine()) {
            String line = scanner.nextLine();
            if(line.equals("jdbc:firebirdsql:192.168.99.239/3050:")){
                System.out.println(line);
            }
            return line;
        }

        return fileName;
    }
}

@@ -181,18 +181,205 @@
 017.%0D%0A *
+ %D0%9F%D0%BE %D0%B8%D0%B4%D0%B5%D0%B5, %D1%8D%D1%82%D0%BE%D1%82 %D0%BA%D0%BB%D0%B0%D1%81%D1%81 %D0%B4%D0%BE%D0%BB%D0%B6%D0%B5%D0%BD %D0%B1%D1%8B%D0%BB %D0%B1%D1%80%D0%B0%D1%82%D1%8C %D0%BF%D1%83%D1%82%D1%8C %D0%B4%D0%BE %D0%B1%D0%B0%D0%B7%D1%8B %D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85 %D0%B8%D0%B7 %D1%84%D0%B0%D0%B9%D0%BB%D0%B0 (String filename)%0D%0A * %D0%9D%D0%BE %D0%BF%D0%BE%D1%82%D0%BE%D0%BC %D1%8F %D0%BF%D0%B5%D1%80%D0%B5%D0%B4%D1%83%D0%BC%D0%B0%D0%BB %D0%B8 %D0%B7%D0%B0%D1%88%D0%B8%D0%BB %D0%BF%D1%83%D1%82%D1%8C %D0%B4%D0%BE %D0%91%D0%94 %D0%B2 %D0%BE%D1%82%D0%B4%D0%B5%D0%BB%D1%8C%D0%BD%D0%BE%D0%BC %D0%BE%D0%BA%D0%BD%D0%B5 %D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D1%8B (%D1%80%D0%B5%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F %D0%B5%D1%89%D1%91 %D0%BD%D0%B5 %D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%B0 :-( )
 %0D%0A
-
  */%0D%0Acla
@@ -558,17 +558,32 @@
       //
- 
+%D1%87%D0%B8%D1%82%D0%B0%D0%B5%D0%BC %D0%BF%D0%BE%D1%81%D1%82%D1%80%D0%BE%D1%87%D0%BD%D0%BE
 %0D%0A      

Update FileWorker.java