В решении не использую буферный массив байт, это разве обязательно?
package com.javarush.task.task18.task1808;
/*
Разделение файла
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
FileInputStream fis = null;
FileOutputStream fosFirst = null, fosSecond = null;
fis = new FileInputStream(br.readLine());
fosFirst = new FileOutputStream(br.readLine());
fosSecond = new FileOutputStream(br.readLine());
int ttCount = fis.available() / 2;
int i = 0;
while (i < ttCount) {
fosFirst.write(fis.read());
i++;
}
while (fis.available() > 0) {
fosSecond.write(fis.read());
i++;
}
fis.close();
fosFirst.close();
fosSecond.close();
}
}