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:
-
Select the File menu, then Open Folder
-
Find and select the folder where you saved the text file.
-
Select the Open button.
-
-
On a computer running the Windows operating system:
-
Select the File menu, then Open Folder
-
Find and select the folder where you saved the text file.
-
Select the Select Folder button.
-
-
Other Links:
- Return to: Week Overview | Course Home