If you want to avoid reading the text file one character at a time...try the following:
[code]if ((hInFile=fopen("./test.txt", "r")) == NULL) {
printf("Couldn't open file.\n");
}
while (!feof(hInFile)) {
memset (sString, '\0', 100);
fgets(sString, 100...