is there is any library function for saving a program?

Printable View