Question: the order of contents read from a file is changed

Hi, all When I read the contents read from a file, I found the order was different from that in file. For example, In file a.txt: a+b+c; d+f+g; b+c+d; d+e+g; m+g+a; a+m+f+1; After reading, I stored them in a list: L := [d+f+g, b+c+d, d+e+g, a+m+f+1, m+g+a, a+b+c]; The order is changed somehow. The procedure I am using here is: HandleGB :=proc(file) local line, T,L,f,cnt; f:=fopen(file,READ); try T:=table(); line:=readline(f); T[cnt]:=parse(line); for cnt do line:=readline(f); if line=0 then break; end if; T[cnt]:=parse(line); end do; finally fclose(f); end try; L:=convert(T,'list'); end; Any ideas? Thanks Gepo I am using the
Please Wait...