only need read access when reading file to array