Try this part of script, which I did not tested, but I think it should work:
DIM mti[][5] !Array for storing the values of the text file
ix=0
ch01 = OPEN("TEXT","C:\GDL\DATA\Database2.txt","SEPARATOR='|',MODE=RO,FULLPATH")
DO
ix=ix+1 !ix is the variable linecounter, 5 columns are given
n=input(ch01, ix, 1, mti[ix][1], mti[ix][2], mti[ix][3], mti[ix][4], mti[ix][5])
WHILE n>-1
close ch01
manu=ix-1 !number of Array lines with content
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation:
b-prisma.de