It looks like you're new here. Sign in or register to get started.
InventTrans InventTrans; CommaIo myFile; Counter recCount; str fileName; ; fileName = "C:\\AxaptaXXXX.txt"; //Creating new file with write access myfile = new commaIO(filename, "w"); //setting up myfile.outRecordDelimiter("\r\n"); myfile.outFieldDelimiter(","); while select InventTrans { myFile.write(InventTrans.ItemId, InventTrans.inventDimId); } myFile.write('______________________'); recCount = new SysDictTable(tablenum(InventTrans)).recordCount(); myFile.write("Inserted " + int2str(recCount) + " Records"); myfile = null;
Comments
{
TextIO diskFile;
Container c;
;
c = [1, "My Text1", 2, "My text2"];
diskFile = new TextIO("c:\\test1.txt", 'W');
diskFile.outRecordDelimiter('\r\n');
diskFile.writeExp(c);
diskFile.writeExp(c);
}
Here is a very simple Ax job -
NOTE - it is intended to be purely as an example and nothing else.
Regards,
Long way to go before I sleep..