Reading Text Files
You must do the following to setup VS Code so that your Python program can read from a text file:
- Download the text file (.txt or .csv) and save it in the same folder where you will save your Python program.
- Using VS Code, open the folder where you saved the text file file by doing the following:
- On a computer running the Mac OSX operating system:
- Click the "File" menu, then "Open Folder..."
- Find and select the folder where you saved the text file.
- Click the "Open" button.
- On a computer running the Windows operating system:
- Click the "File" menu, then "Open Folder..."
- Find and select the folder where you saved the text file.
- Click the "Select Folder" button.