You'd be better off reading the entire line and looking through the array rather than trying to mess around with complex file reading techniques. If you can read the entire file, so much the better.
WaltP
Posting Sage w/ dash of thyme
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 36
Question Answered as of 2 Years Ago by
WaltP But ungetc() is non-standard and therefore not recommended. It will not work in most compilers.
WaltP
Posting Sage w/ dash of thyme
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 36
Standard section 7.19.7.11 (The ungetc function) begs to differ.
Ahh, sorry. I forgot it's not related to getch() . My mistake.
But I still think it shouldn't be used.
WaltP
Posting Sage w/ dash of thyme
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 36