General file and matrix Learners