http://qs321.pair.com?node_id=1230341


in reply to Re: how to read input from a file, one section at a time?
in thread how to read input from a file, one section at a time?

Hi, thank you so much. It works.

I have a following question. Once I have the output in the output file, I want to read the number of alphabets present in the output file for each sequence.

Example:

for the output: "A=27 C=3 D=16 E=14 F=1 G=11 H=4 I=12 K=10 L=13 M=2 N=6 P=10 Q=6 R=6 S=14 T=20 V=11 W=4 Y=10"

I want it to count the alphabets in each result and return how many alphabets are present. In the above example, 20 alphabets are present. So I want my final output to look something like: number of alphabets = 20. How can I do it?