用X++读取文本文件(txt文件)的例子
用X++读取文本文件(txt文件)的例子,完整Job演示
static void Job1(Args _args)
{
Asciiio Txtfile;
Container c;
;
Txtfile = new Asciiio('d:\\itemMaster.txt','r');
Txtfile.inFieldDelimiter(',');
Txtfile.outFieldDelimiter("\n");
while (Txtfile.status()== IO_Status::Ok )
{
c = Txtfile.read();
print conpeek(c,1);print conpeek(c,2);pause;
}
}