change type of dataoffset local variable in FileRead :: getMatInfo to long