How to save 4 versions of a file in the application server
I have to write a program which will extract few data from SAP and write it in a file in the SAP application server. This program will be run once every month.
I need to save 4 versions of the files, current and 3 prior. These versions should cycle off the oldest once a new version has been created.
Could anyone help me how to do this?