I am trying to read from a file of integers, when the program encouters -1 then it is to skip over it and continue reading more integers that follow it. I was thinking about using fin.ignore, but anything I try with it doesn't seem to be working. Does anybody have any suggestions or resources I could use?