Let's say I have a file column that looks like this:
Line# Value
1 6
2 6
3 6
4 6
5 6
6 8
If there are three or more of the same values in a row, start by replacing the second to first value with a number (say '0') and continue to do this to the numbers until a different value is found. The desired result would look like this:
Line# Value
1 6
2 0
3 0
4 0
5 0
6 8
I'm using fscanf to read my file.
Thanks!