Find the file length and predefine the array rows