human
how to get text file.
assistant
Here is a Python function to get a text file
import os

# Enter the file name
file_name = "test.txt"

# Calling the function
print((get_text_file(file_name).read()))

#Example Output
# This is a test

#Remember to inspect code for bugs.