I am writing a python program to go on the raspberry pi. I am currently making an installation script that will as part of its installation process, add a line on cron so that it will automatically startup on bootup.
I need access to the whole file, not just adding a line at the end. As I want the ability to uninstall the program, which will in part remove the line in the crontab.
cron
has been around for decades (the version used in Raspbian is I think older than the WWW) and is extensively documented. I will give you a quick clue by citing the 3rd paragraph inman crontab
: "...system cron jobs in the /etc/cron.d/ directory".