OCR GCSE (9-1) Computer Science Scratch Explanation …

The example below requires you to have created a .txt file with some text in it in the Python folder. >>> import os >>> os.getcwd() '' 'C:\\Python34\NEA.py' ... Note I have used an absolute path, you can use a relative path if the file is in the cwd (open(‘NEA.txt’)). ................
................