I'm struggling here a bit. I want to write a fresh file each time the SD card is inserted. e.g. data0.csv data1.csv data2.csv
so I thought that something like count++ fileName="data" & count & ".csv" could work. but this approach looks to be rubbish. What is the correct approach? Yours Simon M.