--- In [email protected], "brucexs" <bswit...@...> wrote:
>
> Thx honestly reply. I could have already used the following script reading 
> each line in text file

filehand = file.open("c:/ppwork.txt", "r") 
if (filehand >=0) do 
 for each a in filehand
win.debug(a)
 endfor 
filehand.close
endif 

I have learn the syntax for each ....endfor from you help
I would like to know it is possible using if...endif replace for each ..endfor. 
If it could do it , do you writing and little explan the script to me




> 
> Another way to read a file is 
> fh = file.open("c:/xxx.txt","r")
> for each li index lineNum in fh
> do stuff with li
> endfor
> 
> 
> 
> 
> >
>


Reply via email to