Hi,
I am trying to output the current code, which is working ok.
But i want the output to overwrite previous data instead of append.
I am trying to output the current code, which is working ok.
But i want the output to overwrite previous data instead of append.
import requests
import csv
import time
import schedule
from time import sleep
import sys
import csv
import io
starttime=time.time()
def task():
with io.open('C:\\Campbellsci\\LoggerNet\\CR1000_Public.dat') as f:
reader = csv.reader(f, delimiter=',')
for field in reader:
a = (field[6])
print(a)
while True:
try:
task()
time.sleep(0.25 - time.time() % 0.25)
refresh()
except:
pass
time.sleep(0)
else:
time.sleep(0)
refresh()Here is the output:Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> ================== RESTART: C:\Users\Makada\Desktop\cr1000.py ================== 11.38377 11.38377 11.07566 11.07566 10.79836 10.49026 10.42863 10.42863 10.15134
