Basically I have to scan a written text file in, correct misspelled words, and then print the same text to a new file. The user specifies what word is incorrect and what word to replace it with. Right now using fscanf I am scanning in one string at a time, comparing it with the wrong word, correcting it and printing it ...
Something went screwy in the formatting so I'm reposting this:I'm doing something wrong....If I have a multirow file with three fields per row like 1 3.123 "line 1" 2 29l.2 "line 2" 3 42.45 "line 3"and I want to read it in and manipulate the numeric fields independently, why won't this work:int num[3], c;float data[3];char text[30];main(){for (c=0; c<2; ...