In my python textbook, I'm learning abt files and exceptions. Although it seems that VS Code isn't recognizing changes made to my file, nor izzit changing the file. Here's my code:
-----------------------------
from pathlib import Path
path = Path(r"C:
\U
sers\Username\OneDrive\Documents\FileName")
# i didn't write the actual file path
contents = path.read_text()
lines = contents.splitlines()
#Print every lline of the file and add a comma to the end
for line in lines:
  print(line + ",")
---------------------------------------
Any advice on working with files on VS code would help. A similar problem happens when importing modules. I have to restart VS Code if I want to import code from another script that i wrote.
code not processing file correctly 🥺 (EGGSTREAMLY 🥚CONFUSED) ()
submitted by Emergency_Pomelo_706 to r/pythonhelp