Text File Write « File « Python






1.Demonstrates writing to a text fileDemonstrates writing to a text file
2.Reading the newly created file.Reading the newly created file.
3.Creating a text file with the writelines() method.Creating a text file with the writelines() method.
4.Write string to a file