The *scanf approach is actually not too much different from the tokenizing approach, if you're able to see *scanf as a tokenizer itself. The scanf functions are essentially tokenizing chunks of text...
Type: Posts; User: whiteflags
The *scanf approach is actually not too much different from the tokenizing approach, if you're able to see *scanf as a tokenizer itself. The scanf functions are essentially tokenizing chunks of text...
Does this even work? Somehow you got away with using absolutely no storage. Some people told you to use an array of arrays and a while loop.
The fact that you have called fscanf() twice in the...
fscanf is actually pretty good at reading words. Just make sure that your storage is large and that the size is in the format string, like, "%1023s" for a 1KB array.