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 progressDeep Dive: Reading All Lines
// Read all lines from a file
myFile = open("data.txt")
while NOT myFile.endOfFile()
line = myFile.readLine()
OUTPUT line
endwhile
myFile.close()
Always close files! Leaving files open can cause data loss or corruption.
Make this stick
Signing in gives access to all PrepWise features.