in reply to File Input and Output

Hi , I am writing a program were I read the input files containing the ID and date_modified. Now I want to create reports(i.e a set of files) for each date. Please suggest me how I can create the files with different names as dates Thanks in advance