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?
How about you provide us with the media and let us play it on whatever we want? Instead of forcing us to use some crappy exclusive apps that can't be operated with a remote or require several devices and a bunch of crappy apps that decide everything for you? I got truly fed up a few years back when I was travelling for work: I just wanted to watch something in my hotel room after working 10-12 hours and oh ###### "this video is not available in this region" or "our service is not available in your country" and all that BS. That was the nail and I returned to running my own media servers and ditched all streaming services (at the time I had three or four subscriptions). And guess what, now I can watch everything, on pretty much anything, from everywhere, anytime. And ads, I HATE ads - I do not watch live TV at all anymore because breaks are like half an hour long and completely f up immersion (plus live TV quality is closer to the 1990's than it is to 2020's). These days I have Plex and Emby running 24/7 and I can stream in 4K to anywhere as long as I have fast enough Internet access. It has always been very sad to me that businesses that provide and charge for service are unable to come even close to the level of features and options softare like Plex and Emby offer (and I am not simply talking about media realted stuff).
Recent Achievements
daelos earned a badge Week One Done
daelos earned a badge One Month Later
Karlston went up a rank Mentor
EdwardFranciscoVilla earned a badge One Month Later
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