Modify the previous example so that instead of printing out the strings as they are encountered you build up an array of strings that represents the entire input file.

Declare an external array to hold all the strings, e.g.,

#define MAXLINES 100000
char *lines[MAXLINES];		/* Array of strings */
Modify main so that it stores the strings into the lines array while reading them in and then prints them all out when you are done. If you like, you could strip the comments or find the labels or number them, or whatever you like.