public static void main(String[] args) throws IOException {
        System.out.println((int)'\n');
//        String s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ " +
//                "abcdefghijklmnopqrstuvwxyz " +
//                "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ " +
//                "абвгдеёжзийклмнопрстуфхчцшщъыьэюя " +
//                "0123456789";
//        for (char c : s.toCharArray()) {
//            System.out.println((int) c + " " + c);
//        }
//        System.out.println("===================");
//        for (int i = 0; i < 49; i++) {
//            System.out.println((char) i + " " + i);
//        }
//        System.out.println("===================");
//        for (int i = 57; i < 66; i++) {
//            System.out.println((char) i + " " + i);
//        }
//        System.out.println("===================");
//        for (int i = 90; i < 98; i++) {
//            System.out.println((char) i + " " + i);
//        }
////        System.out.println("===================");
////        for (int i = 124; i < 1041; i++) {
////            System.out.println((char) i + " " + i);
////        }
//        System.out.println("===================");
//        for (int i = 1103; i < 1150; i++) {
//            System.out.println((char) i + " " + i);
//        }

        Scanner sc = new Scanner(
                new FileInputStream(new File("P:\\GitHome\\dummy-jetty\\FileSplitter\\res\\uliss18_ru" + ".txt")));
        StringBuilder sb = new StringBuilder();
        while (sc.hasNext()) {
            sb.append(sc.nextLine());
        }
        int length = sb.length();
        final int file_size = 5000;
        for (int i = 0; sb.length() > 0; i++) {
            int index = file_size;
            while (index < sb.length() && sb.charAt(index) != ' ') {
                index++;
            }
            if (index >= sb.length()) {
                index = sb.length();
            }
            outStrings.add(new StringBuilder(sb.substring(0, index).toLowerCase()));
            sb.delete(0, index + 1);
        }
        removeShit();
        writeFiles();
    }