lorna nayagam wrote: > x.i = subwrd(line,1) This should be x.'i' = subwrd(line,1) if you have more than one file open, which I doubt. I think you meant x'i' = subwrd(line,1) without a dot, but with apexes.