Read in data from excel file in C -
I have to write a program that can read information related to a file and sample output on the following slide.
I have completed the code to read from the .txt file I've seen in this screen shot:
I have completed the above code (with optional method in comments):
# Include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; Int main () {FILE * cfPtr = fopen ("C: \\ User \\ David ODIA \\ Desktop \\ Test \\ Maintenance. \ .tv \"; Txt ";" R "); Int line = 0; Four input [255]; While (fgets (input, 255, CFPTR)) {// line ++; Printf ("% s", input); } Printf ("\ n \ n End of the program \ n"); Fclose (cfPtr); Return 0; } // int main () {// FILE * cfPtr = fopen ("C: \\ user \\ David ODIA \\ Desktop \\ Test \\ Maintenance Schedule.txt", "r"); // C: \\ User \\ David O'DiĆ \\ Desktop \\ Test \\ Maintenance Schedule.txt // char c; // f = fopen ("C: \\ user \\ David ODIA \\ Desktop \\ Test \\ Maintenance .suL.txt", "RT"); // while ((c = fgetc (f))! = EOF) {// printf ("% c", c); //} // fclose (f); // return 0; //}> I'm not sure how to complete the second task to read from the .xlsx file so that the result is as follows:
Type your parser for the Solution Resolution <2 :
.xlsx format. .xlsx is an open format. Code> .xlsx is a ooxml format, so it's basically a zip formatted file. You can check the lant section ( document.xml if I remember correctly) and can parse `` .xml` file.
Comments
Post a Comment