Разделение файла: 8 уровень, 5 лекция Java Core / File splitting: level 8, lesson 5 JavaRush

Опубликовано: 23 Март 2026
на канале: Serhii Il
340
14

00:00 - 1
01:36 - 2
02:30 - 3


Разделение файла: 8 уровень, 5 лекция Java Core /
File splitting: level 8, lesson 5 JavaRush


Задание от JavaRush
Разделение файла: 8 уровень, 5 лекция Java Core
Считать с консоли три имени файла: файл1, файл2, файл3.
Разделить файл1: Первую половину байт записать в файл2, вторую половину байт записать в файл3.
Если в файл1 количество байт нечетное, то файл2 должен содержать большую часть.
Используй поток FileInputStream, для записи в файлы - FileOutputStream. Закрыть потоки.



The task from JavaRush
File splitting: level 8, lesson 5 Java Core
Read three file names from the console: file1, file2, file3.
Split file1: Write the first half of the bytes to file2, write the second half of the bytes to file3.
If the number of bytes in file1 is odd, then file2 should contain most of it.
Use FileInputStream and FileOutputStream for writing to files. Close streams.



Java Developer
Android Studio
Язык программирования Джава
Андроид Студио



Repeat after me, then delete and write the code from memory. Create a new task and write the program yourself
Повтори за мной, затем удали и напиши код по памяти. Придумай новое задание и напиши программу самостоятельно


Thank you for watching
Спасибо за просмотр