The line match function now takes the file data in argument too