A number of simple student records are written to a text file.
The format of some typical linesshould be -
Using a text editor, create a file with 10 such records, all different, with Dates of Birth NOT in chronological order.
Write a C# console application program which reads the data and allows the user to browse the data record (student) by record, allowing the user to specify First, Last, Previous and Next by typing a letter on the keyboard. The letter should not be case sensitive.Typing X should terminate the program.
When the user specifies Sort, the records are sorted in chronological order on the date of birth.It should be possible to continue browsing.
The application should be robust enough to flag an error (and terminate) if any of the following input errors are present in the data file -
(a) There are not exactly five fields of data (including the optionally blank secondname)
(b) The number of records exceeds 10
(c) Any record is blank (except secondname)
(d) The date of birth is in an incorrect format
(e) The gender is not correct (must be the single uppercase letter M or F).