hello all i want to ask a question

If i wanted a program to start at boot up/startup like if i was to shutdown my computer. How can i make a script/program to start up at boot time. Were do i add/edit or what file do i do this in? thank you