im going to assume the first file has 6 or MORE line in it, or else your in the poo.
Code:
alias example {
var %list
var %i = 6
while (%i) {
var %text = $read(firstfile.txt,nt) | while ($istok(%list,$readn,32)) { var %text = $read(firstfile.txt,nt) }
var %list = %list $readn
write secondfile.txt %text
dec %i
}
}