我有 2 个文件,我需要将文件 1 拆分为多个文件,其大小由文件 2 的内容指定。文件 2 内容的总和将始终等于文件 1 的大小。文件 2 中可以有许多条目。
File 1 - Size 100 bytes
Ex: File 2 with content
10 - Split first 10 bytes of file to file1_1
10 - Split second 10 bytes of file to file1_2
80 - Split last 80 bytes of file to file1_3
20- Split first 20 bytes of file to file1_1
50- Split the file1 with 50 bytes after first split
30-Last 30 bytes of file 1 to file1_3..