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

To open a file to read from openRead is used and readLine to return a line of text from the file. ... The example below requires you to have created a .txt file with some text in it in the Python folder. >>> import os >>> os.getcwd() '' ... Note I have used an absolute path, you can use a relative path if the file is in the cwd (open(‘NEA.txt ................
................