Hi,

 

You should look in the system documentation for the class AsciiIO.

Basically what you should do is:

 

Create an instance of AsciiIO via AsciiIO = new AsciiIO(FileName, “W”);

 

Then set your delimiters:

AsciiIO.outRecordDelimiter(“\r\n”)

AsciiIO.outfieldDelimiter(“;”);

 

Create a container for each line you want to write in the file:

Container = conins(container, “value”, position);

 

Write the container to the file

AsciiIO.write(container);

 

Please note that I wrote the syntax by heart, so it may contain some spelling errors.

 

Gert Neetesonne

EDAN Business Software

 

 


From: andrianchan [mailto:[EMAIL PROTECTED]
Sent: vrijdag 5 maart 2004 6:35
To: [EMAIL PROTECTED]
Subject: [development-axapta] How to write to file?

 

I would like to produce a report to ASCII file format. Any guidance
or help file that available? I would like to control the output
position of each field. Please help




Yahoo! Groups Links

Reply via email to