title: Rolling log Files & removing old log files
body: <p>I am working on a Java SOAP based webservice application where I am writing stdout to a text file as log for our reference. That file is growing enormously, so I need to check for the size of the file... For example if the file size crosses 10 Mb, I have to create another file. </p>
  
  <p>Like this, I have to create 10 files, rotating one after the other until ten files. After reaching ten files, I have to delete the starting files and start creating again...</p>
  
  <p>How can I delete files after the no. of files will become 10?</p>