• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to identify strings in a file character by character

 
Andrew Musgrave
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like if i have 'if' and i have to check whenever i have an 'if' i have to increment some value.
As far as i know, getc() function takes in the file pointer and gives an output.
The increment is automatic.
But that increment is basically performed after a loop is executed.
What if, i want to know the next character without advancing in a loop?
{Also the output output is a character but can be stored in an integer?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic