- Hi so my assignment asks that I use text saved under 'numbers.txt'
- I am using Windows, so I used notepad to write the text and save it under the name
- However, when I go to run the code, I get the error Errno 2 no such file or directory.
def main(): infile = open('numbers.txt', 'r') file_contents = infile.read() infile.close() print(file_contents) main()I hope I used the tags correctly!!! I am new!