Python Dosya flush() Metodu
Örnek
Dosyaya yazarken tamponu temizleyebilirsiniz:
f = open("myfile.txt", "a") f.write("Now the file has one more line!") f.flush() f.write("...and another one!")
Tanım ve Kullanım
flush() metodu içsel tamponu temizler.
Sözdizimi
file.fileno()
Parametre Değeri
Parametresiz