defjam90
21st September 2008, 10:56
I would like to read a comma seperated file .
Here is a sample of the file
Order No,Order Pos,Order Currency,PO Qty,Receipt Qty,Price
200058,2,SGD,20,20,25.50000
200519,4,USD,4,4,6.00000
200632,2,USD,2,2,6.00000
200669,1,USD,14,14,6.00000
Each field is seperated by comma & I would like to hold each of these in variables
Ex Var a = 200058
b= SGD
I can use the function POS/RPOS to find out the comma & then read the string this is tedious process.
Is there any other simple way of reading the string.If so please provide the syntax.
Thanks
Here is a sample of the file
Order No,Order Pos,Order Currency,PO Qty,Receipt Qty,Price
200058,2,SGD,20,20,25.50000
200519,4,USD,4,4,6.00000
200632,2,USD,2,2,6.00000
200669,1,USD,14,14,6.00000
Each field is seperated by comma & I would like to hold each of these in variables
Ex Var a = 200058
b= SGD
I can use the function POS/RPOS to find out the comma & then read the string this is tedious process.
Is there any other simple way of reading the string.If so please provide the syntax.
Thanks