Change your string to be ':' not ":"

cInLine[i][2]==':'

":" is a null terminated string and therefore is 2 bytes long and you can't compare that to a single character. ':' on the other hand IS a single character.