new routine to read input files WITHOUT allocating the arrays at the same time
Former-commit-id: 4a31682c67d241d46490b401998b2ff55ef0a08c