Implement methods responsible for collecting trigram from file.