nStart = SECONDS() * read file into array nLines = ALINES(aIn, FILETOSTR(cInputFile)) ? 'the time to array = ' + TRANSFORM(SECONDS() - nStart) + ' seconds'The first time the program is executed, the file reads into the array in 3 seconds. Each time after that it takes 30-40 seconds.
CLEAR ALL RELEASE ALL LIKE * * purge cached memory SYS(1104) DIMENSION aIn[1]... at the beginning of the program, but there is no difference. I'm wondering if there is a file buffer that needs emptying, but then I'd think the read would get longer each time but it's approximately the same for every execution after the first.