Quote:
Originally posted by quietcoder
well what i ment was how many characters in a row of the same character.
starting with this text in a file
aababbbaaabbbbaaaabbbbbabbbb
user input
what character do you want for the a's?:C
what character do you want for the b's?:T
how many characters in row do you want combined for the a's?:3
how many characters in row do you want combined for the b's?:4
what character do you want for the combined a's?:F
what character do you want for the combined b's?:H
ends with this text out to a diferent file
CCTCTTTHFCHTCH
By your description, the output shouldn't even look like what you are describing. I can understand the first "CCTCTTT", since you are replacing the 'a' with a C and the 'b' with a T, but after that, it is almost impossible to understand what you are trying to do.