This function will read and text file and return text file contents.

#usage yourContentHolder = return_text_file_content(path to text file)
def return_text_file_content(file):
    encoding_format = "utf-8"
    textDataFile = open(file, mode="r",encoding= encoding_format)
    textContent =
    return textContent

Usage – yourcontentholder = return_text_file_content(path and file name to text file)

Have a Project or Idea!?

Seeking Bespoke Technology Solutions?

Pin It on Pinterest

Share This