below coding works well for english ..but for tamil language ..e.g)for the word தமிழ் ..it counts as த", "ம", "ி", "ழ" and "்".(i.e)5..i want to count it as "த", "மி" and "ழ்" (i.e)3
s...the the problem is in the second file...i am using netbeans...consider the main file(i.e) first file..has the word தமிழ்....this will print on the second file only if i give k=5....it should print when k=3..
So stick some debug in there.
You need to find out where it is going wrong and the simplest way is to start printing out values as you go through the code.
It could be the character set of the input file that's causing an issue, for example.