import time
import os
# Sayaç değerini kontrol et
if not os.path.exists("counter.txt"):
with open("counter.txt", "w") as f:
f.write("10080")
# Sayaç değerini oku
with open("counter.txt", "r") as f:
counter = int(f.read())
while counter > 0:
time.sleep(1) # Her saniye bekler
counter -= 1
# Sayaç değerini güncelle
with open("counter.txt", "w") as f:
f.write(str(counter))
# Sayaç sıfırsa dosyayı sil
if counter <= 0:
os.remove("dosyanizin_yolu.txt")