Langsung ke konten utama

Postingan

Menampilkan postingan dengan label CSV

How to read CSV files in AX 2012 through X++ code

Through following code we can read CSV files static void ReadCsvFile(Args _args) {     #File     IO  iO;     CustAccount custAccount;     CustName custname;     FilenameOpen        filename = "d:\\jit.csv";//To assign file name     Container           record;     boolean first = true;     ;     iO = new CommaTextIo(filename,#IO_Read);     if (! iO || iO.status() != IO_Status::Ok)     {         throw error("@SYS19358");     }     while (iO.status() == IO_Status::Ok)     {         record = iO.read();// To read file         if (record)         {             if (first)  //To skip header             {                 f...