Create my own archiving utility in C

bshap0624

 (60 points) Write an archiving utility in C that allows you to create an archive, and add, list, and extract files. Call it... gunk. It should have the following capabilities:


 (a) (20 points) ./gunk -a myarchive somefile 

Gunk should add (hence the -a) the file somefile to the archive file myarchive. Subsequent calls to add to the same archive should result in the additional files being added to the archive. 


(b) (20 points) ./gunk -l myarchive 

Gunk should list only the names of the files stored in the specified archive. 


(c) (20 points) ./gunk -e myarchive somefile 

Gunk should extract the named file from the archive, creating a new file with the same name and containing the exact same data as the original and stored files. Careful not to overwrite something you can’t live without. 

    • 8 years ago
    • 15
    Answer(10)

    Purchase the answer to view it

    NOT RATED

      Purchase the answer to view it

      NOT RATED

        Purchase the answer to view it

        NOT RATED

          Purchase the answer to view it

          NOT RATED

            Purchase the answer to view it

            NOT RATED

              Purchase the answer to view it

              NOT RATED

                Purchase the answer to view it

                NOT RATED

                  Purchase the answer to view it

                  NOT RATED

                    Purchase the answer to view it

                    NOT RATED

                      Purchase the answer to view it

                      NOT RATED