ruby file to collect the data from the user and save the details to a text file.