Hi again

Sorry for posting on multiple sites. I finally did it :
file=open("results.txt")
l=readlines(file)
y,x=zeros(505),zeros(505)
c=1
for i=1:length(l)
    l[i]=strip(l[i])
     if(contains(l[i],"total transient time")==true)
        k1=split(l[i])
        x[c]=float(k1[5])
        c+=1
    end
    if(contains(l[i],"79")==true&&contains(l[i],"105")==true)
        k=split(l[i])
        y[c]=float(k[2])
    end      
end
I know the number of increments (505) so i could just create array before 
loop, but i want code to be little bit more flexible, how to declare array 
(x,y in this case) that size is related to c which is unknown before code 
execution?

Regards
Mike

Reply via email to