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:
/* given a file named "data.txt" whose contents are:
define temp-table tt_example no-undo
field f1 as character format "x(30)"
input from value ( "data.txt" ).
for each tt_example:
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.