Question: Need help with this code in C language Create a program that validates a CSV file based on a header line at the top of
Need help with this code in C language

Create a program that validates a CSV file based on a header line at the top of the file. The header line will represent the attribute names and the number of attributes. For example, if the header line is ID, NAME, PRICE, QUANTITY, you know that there are 4 attributes. All subsequent lines of data must include 4 attributes to be considered valid. Requirements - (2.5 points) Prompt the user to enter a file name. - (2.5 points) Check your file pointer to make sure the file exists. - (5 points) If the file passes validation, print the name of the file and a message indicating that it is valid. - (10 points) If the file does not pass validation, print each line that is not valid. - (10 points) The validation code should be implemented as a separate function. - Include a corresponding header file that contains any statements, statements, and function declarations. - Save your code as and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
