file = open("scores.txt","w"), Opening a file in write mode, file = open("scores.txt","r"), Opening a file in read mode, file = open("scores.txt","a"), Opening a file in append mode, file.writeline("scores.txt/n"), Writing to a file, file.readline(), Reading a single line from a file, file.read(), Read a whole file, file.close(), Close a file, scores.txt, An example of a text file, Notepad, Use this software to create a text file, To save data permanently, Why do we need to use text files?

Leaderboard

Visual style

Options

Switch template

Continue editing: ?