I have a working procedure that uses file read to open a dat file and populate variables with the values from the dat file.
I had to change the dat file into a CSV file and i'm not sure how to do the populate on a comma delimited set of data.
Here is my old code:
ls_variable_1 = trim( mid( ls_file_lines[li_counter], 1,25 ) )
ll_variable_2 = long(trim( mid( ls_file_lines[li_counter], 26, 8 ) ))
ll_variable_3 = long(trim( mid( ls_file_lines[li_counter], 34, 8 ) ))
I need to know how do the above code only using a CSV file.
so:
ls_variable_1 = whatever comes before the first comma
ls_variable_2 = whatever comes after the first comma and before the second comma
and so on
Hope someone can help quick
thanks
I had to change the dat file into a CSV file and i'm not sure how to do the populate on a comma delimited set of data.
Here is my old code:
ls_variable_1 = trim( mid( ls_file_lines[li_counter], 1,25 ) )
ll_variable_2 = long(trim( mid( ls_file_lines[li_counter], 26, 8 ) ))
ll_variable_3 = long(trim( mid( ls_file_lines[li_counter], 34, 8 ) ))
I need to know how do the above code only using a CSV file.
so:
ls_variable_1 = whatever comes before the first comma
ls_variable_2 = whatever comes after the first comma and before the second comma
and so on
Hope someone can help quick
thanks