Anybody could suggest or advices:
I want to read a csv file and process the records in the csv
file row by row.
I used the fileopen() in linemode and the fileread(). As
scrip below
FileLength("C:\test.csv")
FileOpen("C:\test.csv",LineMode! )
The question are:
1. How to code so the it will process read records in
test.csv file until last records?
2. How to parse the data into individual column which
seperated by comma?
e.g: records in the csv file consist of 5 columns
1,Jane,ykzbsdbsdfsfsf,XX,,
2,dhsdjsdds djfjsjss,123,00,jlkmnb
3,,654334,hbjjjjjjjjj,ertdss
Thanks
--
PB9.01.7236
Thank you,
R.Chauvin
<Mary> wrote in message news:41763429.76d...@sybase.com...
About parsing the data into indivicual columns, you can check for commas.
Even easier would be to just import the file into a datawindow and then do
all your processing from the datawindow. This is the way I would go.
Mark
<Mary> wrote in message news:41763429.76d...@sybase.com...
You have to decide which method is appropriate. Both are do-able.
--
PB9.01.7236
Thank you,
R.Chauvin
<Mary> wrote in message news:417715c9.7b0...@sybase.com...