local length = part2:size() local file = io.open('/home/xbwang/Desktop/part2original','a') for j = ,length do number = part2[j] file:write(tostring(number)..'\n') end