I have used this function many times but for some reason I am not getting what I expect. I am writing a parser program, everything is working well but when I tried to get the first lexeme (word or operator) the program kept returning { which was not in the input file, I then tried to use getline() and I got this as a result: {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
Does anyone have any idea why this occurred?? I am using a mac and i was not sure if using an rtf file as my input file made a difference