Minor: make a program

Make a program that will take a user-inputted number of lines (the old credits/copyright) and delete them from the top of a file AND replace the beginning of the file with a new file, properly labeled something like header.txt so that when someone changes something in the header they can type
./fixheader 7 header.txt

Also I think i’ll make it do a backup before it does that so the person will have to manually delete the backup after they check to see if it worked. i.e. so someone doesn’t type
./fixheader 70 and lose 63 lines of code in each file.

Leave a Reply