I am using fscanf to read (like this fscanf(file,"%s\n",data)), as far as I am aware fscanf will skip special characters right? So how can I understand when I get ID 1? I think it doesn't take the blank space....
Is there any other way besides reading char by char?
I really wonder how and why they've dragged their feet on it for over a decade by now, being such a large company with possibly hundreds of developers that could be assigned to this task to finish all the underlying migrations... 🤔 It's really puzzling
Also, f'ing finish migrating the Devices and Printers managers to properly fully capable new implementations!
Apple has already chosen thinness versus a bigger battery w/ iPad. The iPad m4 is thinner, with the same battery life as the previous gen. No one asked for it to be thinner, as the previous gen was good already. They could have kept the same dimensions and made the battery bigger, which would have increased the battery life significantly.
Question
gian
Hello,
I am reading from a file of this format :
ID 1
name
name
name
etc.
ID 2
name
name
name
etc.
I am using fscanf to read (like this fscanf(file,"%s\n",data)), as far as I am aware fscanf will skip special characters right? So how can I understand when I get ID 1? I think it doesn't take the blank space....
Is there any other way besides reading char by char?
Thanks a lot
Link to comment
https://www.neowin.net/forum/topic/778574-c-file-input-and-strcmp/Share on other sites
3 answers to this question
Recommended Posts