yes, im a newb. now that its out of the way, i need a little help with the fgets() and fscanf() functions ...
basically im trying to create a loop where a text file is opened and each line is read and then displayed on the screen. the file and everything works fine but for some reason it only displays the first word of each name. for example "The Simple Life" will only appear as "The". I think i might have to put a statement in that allows it to keep reading the line when it reaches a blank space, i just dont know how to do it. any help is appreciated. thanksCode:while (fgets(tvshow, NAMESIZE, inFile) != NULL) { fscanf(inFile, "%s", &tvshow); printf("\n%s", tvshow); }