//Lars
-----Original Message-----
From: jasonm [mailto:[EMAIL PROTECTED]
Sent: 11. august 2004 15:23
To: [EMAIL PROTECTED]
Subject: [development-axapta] file writing and reading
I am now writing an csv file, then read it as ascii then write out to a
new ascii file adding in a non-csv line.
When I try to open the csv file for read it fails, dont get an error but
it's as though the file is not there.
Both set of code work as I can run them independantly.
Is the a method to close a file once you have created it so it can be
opened again in read mode?
Jason
-----Original Message-----
From: Theissen, Annette [mailto:[EMAIL PROTECTED]
Sent: 10 August 2004 13:25
To: '[EMAIL PROTECTED]'
Subject: AW: [development-axapta] file writes non-csv
Hi Jason,
try class AsciiIO instead of CommaIO.
Hope this helps, Annette
Mit freundlichen Grüßen / Best regards
Dipl. Phys. Annette Theißen
System Software Entwicklung
______________________________________________
Viscom AG - Carl-Buderus-Str. 9-15 - D-30455 Hannover
Phone: +49/511/94996-0 - Fax: +49/511/94996-900
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -
http://www.viscom.de <http://www.viscom.de> < http://www.viscom.de/ <http://www.viscom.de/> >
-----Ursprüngliche Nachricht-----
Von: jasonm [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 10. August 2004 13:57
An: [EMAIL PROTECTED]
Betreff: [development-axapta] file writes non-csv
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
< http://us.ard.yahoo.com/SIG=129uce4a5/M=298184.5285298.6392945.3001176/ <http://us.ard.yahoo.com/SIG=129uce4a5/M=298184.5285298.6392945.3001176/>
D=gr
oups/S=1705006764:HM/EXP=1092226421/A=2164330/R=0/SIG=11eamf8g4/* http:// <http://>
www.
netflix.com/Default?mqso=60183350> click here
< http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=group <http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=group>
s/S=
:HM/A=2164330/rand=364372468>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/ <http://groups.yahoo.com/group/development-axapta/>
< http://groups.yahoo.com/group/development-axapta/ <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
Service
< http://docs.yahoo.com/info/terms/ <http://docs.yahoo.com/info/terms/> > .
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
< http://us.ard.yahoo.com/SIG=129chsup5/M=298184.5285298.6392945.3001176/ <http://us.ard.yahoo.com/SIG=129chsup5/M=298184.5285298.6392945.3001176/>
D=groups/S=1705006764:HM/EXP=1092227287/A=2164331/R=0/SIG=11eaelai9/*htt
p://www.netflix.com/Default?mqso=60183351> click here
< http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=group <http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=group>
s/S=:HM/A=2164331/rand=347555503>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/ <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
Service < http://docs.yahoo.com/info/terms/ <http://docs.yahoo.com/info/terms/> > .
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129haat91/M=298184.5285298.6392945.3001176/D=groups/S=1705006764:HM/EXP=1092318478/A=2164330/R=0/SIG=11eamf8g4/*http://www.netflix.com/Default?mqso=60183350> click here
<http://us.adserver.yahoo.com/l?M=298184.5285298.6392945.3001176/D=groups/S=:HM/A=2164330/rand=463578769>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/ <http://groups.yahoo.com/group/development-axapta/>
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .
[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.