right into a container making for easy processing.
-Preston
static void sampleCSVread(Args _args)
{
commaIO myfile;
container inputFields;
fileName inputFile = 'c:\\test.csv';
int iCount = 0;
;
startlengthyoperation();
myfile = new commaIO(inputFile, 'R');
if(!myFile)
throw error('File not found or unable to open for reading');
while(myfile.status() == IO_Status::OK)
{
inputFields = myfile.read();
if(conlen(inputFields) != 0) //check if not then exit
{
//Do stuff with the container
info(conpeek(inputFields,1));
}
else
info('Read Done');
}
}
-----Original Message-----
From: Andre Klopper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 14, 2004 7:18 AM
To: '[EMAIL PROTECTED]'
Subject: [development-axapta] text files (csv)
Hi,
I need to make use of csv file to do certain operations.
How do I read these into axapta? And how can I write new files?
Ragards
Andre
The information transmitted in this electronic communication is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. PPS Insurance is neither liable
for
the proper, complete transmission of the information contained in this
communication nor any delay in its receipt. Opinions, conclusions, and
other
information contained in this message that does not relate to the
official
business of PPS Insurance, shall be construed as neither given nor
endorsed
by PPS Insurance. PPS Insurance accepts no liability whatsoever for any
loss, whether direct, indirect or consequential, arising from
information
made available or actions taken in reliance upon this information by
persons
or entities other than the intended recipient.
Director's of Professional Provident Society Insurance Company Limited:
Dr. DR Anderson (Chairman), Adv. R Meyer (Deputy Chairman), Dr. NG
Campbell,
Judge LI Goldblatt, Mr. I Kotz�, Mr. MJ Jackson (Chief Executive), Mr.
CJ
Masson, Mr. EA Moolla, Mr. WF Mthembu, Dr. DGC Presbury, Mr. DK Smith,
Mr DD
Gnodde, Dr JJ van Niekerk. Company Secretary -
Mrs. J Lester.
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129pn7jqc/M=295196.4901138.6071305.3001176/
D=groups/S=1705006764:HM/EXP=1095252534/A=2128215/R=0/SIG=10se96mf6/*htt
p:/companion.yahoo.com> click here
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=403457108>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
<http://docs.yahoo.com/info/terms/> Service.
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

