The project says: "You can take for granted that the files are correct, so you don't have to do any error checking". So i think i will not do any. Of course if it was a real-world programm, of course...
Type: Posts; User: plutonas
The project says: "You can take for granted that the files are correct, so you don't have to do any error checking". So i think i will not do any. Of course if it was a real-world programm, of course...
well the files are supposed to be correct, so no error checking is required... :-)
I think i got it:
pT = fopen(filename,"r");
fgets(str, 32,pT);
sscanf(str,"%d", &lines);
for (i=0; i<lines; i++){
fgets(str,32,pT);
sscanf(str,"%c %d %d %d %d %d %d", &c,...
I can't find any examples in the board, perhaps i'm searching wrong. Could you be so kind to provide me with some links?
hello, i want to read and store data from lines of a file which has the following structure:
they start with a character which is either c or s, if it is c three integers follow, if it is s two...
Hi this is my first post here...
I am learning C right now(through the book on the Title), so my knowledge about the language is very small...
So, in the first chapter of the book there is a...