#Add the text file to the visual studio project
try:
with open('file_name.txt') as f:
#create list with each line of text as an element
text = f.read().splitlines()
except FileNotFoundError:
text = None
#Add the text file to the visual studio project
try:
with open('file_name.txt') as f:
#create list with each line of text as an element
text = f.read().splitlines()
except FileNotFoundError:
text = None
Comments