I'm stuck here with a small Problem. I have a python tcp Server running on my pc reciving data from a Client. I Need to automaticly write a csv file. now the only Problem is data is being overwritten in the first row, is there a way to give an index to the data I'm reciving? help would be great. Thanks!
#while connected
while 1:
data = con.recv(Buffer_size)
writer = csv.writer(open(filename+".csv", 'w')
writer.writerow('\n'data)