added open function to allow user to open text files with new line delimiters seperating the list items