- 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
- 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
$ ./main --cut 6 doc.pdf
$ ./main --join doc.pdf