[Python] Why is this code not reading my file in VSC but works in PyCHarm? [duplicate]

Discussão em 'Python' iniciado por Stack, Julho 5, 2025.

  1. Stack

    Stack Membro Participativo

    with open("numbers.txt") as new_file:


    it shows,

    with open("numbers.txt") as new_file:
    ~~~~^^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: 'numbers.txt'


    this error

    Continue reading...

Compartilhe esta Página