來個例子: //----------------------------------- function get mt4 connection --------------------------------------- function mt_isconnected() { fileh = fopen(orderfile+"_link.txt","r"); if(fileh) { Link=StrToNum(StrLeft(fgets(fileh),1)); fclose(fileh); } else { Link=0; } return Link ; // 2= linked }