Insert text in test.txt and get this text without duplicated rows