load file to matrix