Implemented method to read data from contacts.txt file