G'Day !
Question in regards to writing a file.... I'm trying to create a file with a name based on today's date and hour.
ie. 10/21/11/05.report
this works if i wish to create a file by symbol
fm = new File(getSymbol()+".report");
but this doesn't if i sub in a variable for some reason...
ReportDate = this.hour + "/" + this.day + "/" + this.month + "/" + this.year;
debugPrintln("Date is "+ReportDate); //returns what i want
fm = new File(ReportDate+".report");
any ideas ?
Chris
Question in regards to writing a file.... I'm trying to create a file with a name based on today's date and hour.
ie. 10/21/11/05.report
this works if i wish to create a file by symbol
fm = new File(getSymbol()+".report");
but this doesn't if i sub in a variable for some reason...
ReportDate = this.hour + "/" + this.day + "/" + this.month + "/" + this.year;
debugPrintln("Date is "+ReportDate); //returns what i want
fm = new File(ReportDate+".report");
any ideas ?
Chris
Comment