Hi all,
I am trying to read from a text file in C. So far I managed to read all the contents of the text file using the code below:
Is there a way to skip lines starting with a particular symbol (example skip all lines starting with the / symbol) ?
Any help would be appreciated.
I am trying to read from a text file in C. So far I managed to read all the contents of the text file using the code below:
Code:
while(index != EOF)
{
index = fgetc(filePointer);
putchar(index);
}
Any help would be appreciated.
Last edited: