Have you tried doing "read" repeatedly on the file, once per number (and not doing the huge allocations)? Neil V.