Re: Files and Arrays Programming Software Development by Ancient Dragon How about this one? But this has the danget of writing outside the bounds of the array, so you need to add more checkiing. [code] rows = cols = 0; while( infile >> numbers[rows][cols]) { cols++; if(cols > 7) { cols = 0; rows++; } } [/code]