मान लीजिए कि हम मौजूदा कंटेंट में कुछ लाइन्स को जोड़ने के लिए फ़ाइल c:\scores.txt खोलना चाहते हैं। इसके लिए स्टेटमेंट होना चाहिए:
1
outfile = open(“c:\\scores.txt”, “a”)
2
outfile = open(“c:\scores.txt”, “a”)
3
outfile = open(file = “c:\scores.txt”, “r+”)
4
outfile = open(file = “c:\\scores.txt”, “wb+”)