损失函数
var Arr=new Array();
try
{
var fso=new ActiveXObject("scripting.filesystemobject_0418s");
var txtstream=fso.openTextFile('c:\\data.txt');
var txt='';
while(!txtstream.atEndOfLine)
{
Arr.push(txtstream.readLine());
}
txtstream.close();
txtstream=null;
fso=null;
}
catch(e){alert(e);}
for(var i=0;i<Arr.length;i++)
alert(Arr[i]);