this is how i did it.....
model = Sketchup.active_model
a = []
counter = 0
file = File.new("trial.txt", "r")
while (line = file.gets)
a[counter] = line
if counter % 4 == 0.0 # lines 0 , 4, 8 etc
machine = "#{a[counter].strip}.3ds"
elsif counter % 4 == 1.0 # lines 1 , 5, 9 etc
x = a[counter].to_f
elsif counter % 4 == 2.0 # lines 2 , 6, 10 etc
y = a[counter].to_f
elsif counter % 4 == 3.0 # lines 3 , 7, 11 etc
rot = a[counter].to_i
### processing
end
counter = counter + 1
end