Показать сообщение отдельно
Старый 07.11.2012, 10:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,497 / 847 (79) +++++++
Регистрация: 28.10.2006
Malaysia: Reading a comma-separated value file
Источник: http://axmas.blogspot.com/2012/11/re...alue-file.html
==============


class ReadCommaFile
{
}


public static client void main(Args _args)
{
CommaTextIo file;
container line;
;
#define.filename(@'C:\Temp\accounts.csv')
#File
file = new CommaTextIo(#filename, #io_read);

if (!file || file.status() != IO_Status::Ok)
{
throw error("File cannot be opened.");
}
line = file.read();

while (file.status() == IO_Status::Ok)
{
info(con2Str(line, ' - '));
line = file.read();
}
}




Источник: http://axmas.blogspot.com/2012/11/re...alue-file.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.