Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement