Test yourself on File Handling with exam style questions, marked instantly.
Flashcards that come back just before you would forget them.
A revision plan that remembers what you know and shows what to do next.
See which topics you have nailed and which need another look.
Quiz yourself on File HandlingGet your flashcardsBuild my revision planTrack my progressFile Operations
| Operation | GCSE Pseudocode | Purpose |
|---|---|---|
| Open | myFile = open("file.txt") | Open the file, stored in a variable, ready to read or write |
| Create a new file | newFile("file.txt") | Make an empty text file, then open it with open() |
| Read line | line = myFile.readLine() | Read next line from file |
| Write line | myFile.writeLine("text") | Write a line to the end of the file |
| Close file | myFile.close() | Close file when done |
| End of file | myFile.endOfFile() | Check if at end of file |
Make this stick
Signing in gives access to all PrepWise features.