Hello all,

can someone help me with this please.

I have to output a csv file of data from axapta, which I have done. But
the third party software that requires this file needs the first line
without quotes arround it. (NON-csv) and the rest of the file as csv.

Below is my code....to out all lines as csv file

========================================================================
==================

Filename                    filenameInProcess;
  Container                   lineData;
;

filenameInProcess= "c:\\csvfile.csv";

CSVFile  = new CommaIO(filenameInProcess,"W");

    lineData = ["CSV  YYYY/MM/DD hhmm    HEAD LINE VAT  TRAIL
NN     "];
    CSVFile.writeExp(lineData);

...subsequent lines in csv format.

========================================================================
==================

I think the way to do this is to create the file as csv then re-read and
write out as non-csv file, removing the quotes from the first line?

Can anyone help with some code on how to do this?

Regards,

Jason




[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to