code to parse employee data from a file and store it in different file