with open("file.txt", "r") as txt_file:   return txt_file.readlines()

Read more of this post