I am trying to download daily economic news from dailyfx website
http://www.dailyfx.com/calendar/inde...urrencyFilter=|&importanceFilter=|
The url of the csv format file is
http://www.dailyfx.com/calendar/Dail...urrencyFilter=|&importanceFilter=|
I put the following function in preMain(). However it seems it does not work. Can someone take a look and tell me what is wrong? Thanks in advance.
function updateDailyFXEventFile()
{
var u = "http://www.dailyfx.com/calendar/Dailyfx_Global_Economic_Calendar.csv?currentWeek=/events-calendar/2008/0302/&direction=none&collector=allInFolderDateDesc&view =week&timezone=default¤cyFilter=|&importance Filter=|";
var v = new HTTP(u);
if ( v.open("rt") ) {
debugPrintln("file is opened");
while( !v.eof() ) {
debugPrintln(v.readln());
}
}
else {
debugPrintln("file can not be opened");
}
v = null;
}
- Clearpicks
http://www.dailyfx.com/calendar/inde...urrencyFilter=|&importanceFilter=|
The url of the csv format file is
http://www.dailyfx.com/calendar/Dail...urrencyFilter=|&importanceFilter=|
I put the following function in preMain(). However it seems it does not work. Can someone take a look and tell me what is wrong? Thanks in advance.
function updateDailyFXEventFile()
{
var u = "http://www.dailyfx.com/calendar/Dailyfx_Global_Economic_Calendar.csv?currentWeek=/events-calendar/2008/0302/&direction=none&collector=allInFolderDateDesc&view =week&timezone=default¤cyFilter=|&importance Filter=|";
var v = new HTTP(u);
if ( v.open("rt") ) {
debugPrintln("file is opened");
while( !v.eof() ) {
debugPrintln(v.readln());
}
}
else {
debugPrintln("file can not be opened");
}
v = null;
}
- Clearpicks
Comment