Code:
open (FILE, '>>crmpicco.csv') or die "Cannot open file 'crmpicco.csv'\n";
# write to file
print FILE "$csvstr\n";
close (FILE)
does anyone know of a way to empty the file's contents before I write the csvstr to it? i dont want to append to what is already there.
Picco
www.crmpicco.co.uk
www.ie7.com