readAffine function

Read an affine matrix from a file