open app.path & "\in9.txt" for read??? as #1
dim suns as string
line intput #1,suns
text1.text=suns
close #1
dim i as int.....
for i=1 to len(suns)
switch case mid(suns,i,1)
case "T" or "t"
intT=intT+1
case "R" or "r"
intR=intR +!
case "D" or "d"
inD=inD+1
end switch
next
text2.text=inT& " " inR & " " & inD
open app.paht & "\out9.txt" for w.... as #2
pring #2,inT& " " inR & " " & inD
close #2
1年多没编程了..呵....