Hey there~ Im kind of new in C programming and i need help on reading files from a text file using fscanf()..The data from the text file is seperated by ":"..Here's the code:
The file "books.txt" which im supposed to read in is:
if((in = fopen("books.txt", "r")) == NULL)
There are two problems in my program...First of all, fscanf tends to skip white spaces....Second of all,there is an infinite loop in my while loop!! Or are there any other ways to read data from a text file seperated by a ":"?? Hope you all can help me out in this...
4:Web Design In A Nutshell:J. Niederst:1999:54.95:5
1:A Book on C:A. Kelly:1997:89.95:7