Reading one line at a time in C

后端 未结 10 881
萌比男神i
萌比男神i 2020-12-01 13:01

Which method can be used to read one line at a time from a file in C?

I am using the fgets function, but it\'s not working. It\'s reading the space

10条回答
  •  佛祖请我去吃肉
    2020-12-01 13:58

    Source of Error:

    Actually it was not my fault.. In this case . I was using strtok function and and accidently modified my original my original string. Hence while printing I was getting the error...

    Thanks Everyone for Helping me.. :)

提交回复
热议问题