home *** CD-ROM | disk | FTP | other *** search
- 10 open "SFGetFile" for input as #1
- 20 open "SFPutFile" for output as #2
- 30 linecount = 0
- 40 starttime = timer
- 45 while not eof(#1)
- 50 outl$ = ""
- 60 input #1,inl$
- 70 for i = 1 to len(inl$)
- 80 if mid$(inl$,i,1) = chr$(209) then
- 90 outl$ = outl$+"--"
- 100 else
- 110 outl$ = outl$+mid$(inl$,i,1)
- 120 endif
- 130 next i
- 140 print #2,outl$
- 150 linecount = linecount+1
- 160 wend
- 180 stoptime = timer
- 190 close #1
- 200 close #2
- 210 print linecount;" lines processed in ";stoptime-starttime;" sec"
- 220 end
-