[Solved] how to split and join files in c or rust? [closed]


In C++, you split files by reading the master and writing to one or more new files.
This technique works with the C language also.

Joining files depends if you want to merge or append. In the append case, the destination file is opened with the “append” and write attribute. The file pointer is set to the end of the file, then stuff is written (appended) to the file.

IMHO, most file operations should be left to the OS as much as possible.

3

solved how to split and join files in c or rust? [closed]