method to get all txt file paths
final version