This is very very informative. But in my case I am not defining the strings in the program, I am reading the strings from a file.
Only exception is that fgets is probably more applicable than fscanf.Code:fp = fopen("PSV101data.rtf", "r"); for (i=1; i <= 47; i++) {fscanf(fp, "%s\n", a[i]); printf("%s/n", a[i]);} fclose(fp);



LinkBack URL
About LinkBacks



