Writing Data to Files
Topics:
- Opening a file for writing
- fout = open("filename","w", [encoding="utf-8"] )
- Command to write to file
- fout.write( theString [+ "\n"] )
- Closing the file
- fin.close()
- fout.close()
Materials:
- Files I will use in this lesson. To download these files you should right-click and "save as"
Recording
- VIDEO - Using Filenames via function parameters (8 minutes)
- VIDEO - Writing to a file (27 minutes)
- VIDEO - Alternate Encodings (8 minutes)