Hy,
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:
ex:
Name, Age, Email, OptionalField1, OptionalField2
Anna, 22, anna@smting.com, completed
Mark, 24, mark@smting.com, completed completed
Alex, 22, alex@smting.com, completed
Tim, 32, tim@smting.com,
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?
Thank you