Extract marks from file or folder.