I have to write a program witch recognizes the extension of the file it gets as argument after that it has to validate the file line by line.
A file should look like this:
It has to validate the mandatory fields( name, age, email) and also the optional fields if they are completed.
It has to validate the age as an Integer
Any idea how can i do this?