LessonAbout 7 minLesson languageEnglishதமிழ் (Tamil)हिन्दी (Hindi)മലയാളം (Malayalam)తెలుగు (Telugu)ಕನ್ನಡ (Kannada)বাংলা (Bengali)मराठी (Marathi)ગુજરાતી (Gujarati)ਪੰਜਾਬੀ (Punjabi)Chapter 12 · Lesson 4 of 504. Write and add to a fileOpen a file with "w" to write a new one, or with "a" to add lines to the end of one that's already there.