Var:giorno(0),mese(0),anno(0),ore(0),minuti(0) ,mol(0) ,gg(0),cont(0) ; // Agggiungere qui le variabili che vi servono
giorno=getday;
mese=getmonth;
anno=getyear;
ore=gethour;
minuti=getminute;
filewriteval("c:\fib30.csv",giorno, false);
FileWriteString("c:\fib30.csv", "/", false);
filewriteval("c:\fib30.csv",mese, false);
if getyear=2000 then
filewritestring("c:\fib30.csv","/2000 ", false);
endif;
if getyear=2001 then
filewritestring("c:\fib30.csv","/2001 ", false);
endif;
if getyear=2002 then
filewritestring("c:\fib30.csv","/2002 ", false);
endif;
if getyear=2003 then
filewritestring("c:\fib30.csv","/2003 ", false);
endif;
if getyear=2004 then
filewritestring("c:\fib30.csv","/2004 ", false);
endif;
if getyear=2005 then
filewritestring("c:\fib30.csv","/2005 ", false);
endif;
if getyear=2006 then
filewritestring("c:\fib30.csv","/2006 ", false);
endif;
if getyear=2007 then
filewritestring("c:\fib30.csv","/2007 ", false);
endif;
if getyear=2008 then
filewritestring("c:\fib30.csv","/2008 ", false);
endif;
if getyear=2009 then
filewritestring("c:\fib30.csv","/2009 ", false);
endif;
filewriteval("c:\fib30.csv",ore, false);
FileWriteString("c:\fib30.csv", ".", false);
filewriteval("c:\fib30.csv",minuti, false);
FileWriteString("c:\fib30.csv", ";", false);
FileWriteVal("c:\fib30.csv", C, false);
FileWriteString("c:\fib30.csv", ";", false);
FileWriteVal("c:\fib30.csv", o, false);
FileWriteString("c:\fib30.csv", ";", false);
FileWriteVal("c:\fib30.csv", h, false);
FileWriteString("c:\fib30.csv", ";", false);
FileWriteVal("c:\fib30.csv", l, false);
FileWriteString("c:\fib30.csv", ";", false);
FileWriteVal("c:\fib30.csv", v, true);