Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 789 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 789 Bytes

File Splitter and joiner

Compilation

  • Execute makefile, to compile the 3 executables: main, CUT and JOIN. The object code will be compiled in the "build / obj" folder and the executables in the "build /" folder.
$ make

Execution

  • Go to `build/' directory.
  • For execution you must run the main program main next to the Options - cut N <input> if you want to cut the input file in N parts, or with - join <original-file> if you want to restore the original file.
  • The JOIN program will retrieve the missing part - if any - and unite all the parts to restore the original program.
$ ./main --cut N file.extension
$ ./main --join file.extension

Example

$ ./main --cut 6 doc.pdf
$ ./main --join doc.pdf