How can i skip a character while inputting from a file in ifstream?

how do i skip a char in filestream?
i tried the ignore function but that doesnt work in filestream, i also tried using an array[i] and said if(arr[i]=="-")
then i++ while outputting but that doesnt work either