looping over each line of a file in C

I'm wondering how you can loop over each line of a file heres the code I have so far: FILE *todoFile; todoFile = fopen("./todo.txt", "r"); if (todoFile != NULL) { } else { printf("ERROR"); }
Have you investigated writing a regular expression evaluator? Or a library? If so, Which ones? We are not here to do your work for you. Only to help you with a little nudge when you get stuck.

以上就是looping over each line of a file in C的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » CSS3 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准