Generates the dot product of two matrices which are read in through a file.