Read matrix frmo file