I'm not sure what you mean by "pass", I'm assuming that you mean that you wish to populate a temp-table with the contents of a file. Here is an example:
Code:
/* given a file named "data.txt" whose contents are:
abc
xyz
def
fred
george
xyzzy
*/
define temp-table tt_example no-undo
field f1 as character format "x(30)"
.
input from value ( "data.txt" ).
repeat:
insert tt_example.
end.
input close.
for each tt_example:
display f1.
end.
Your actual problem likely has a more complicated structure
In this example the key to "in the same order" is that I did not bother to create an index on the temp-table. That may, or may not, be a suitable solution for your problem space. But given the lack of insight into what you actually need I have decided to go with a minimalist approach. Clarified requirements might result in a different approach.