I am making a program that automates the separation of a csv file. We read csv in end-to-end mode and then assign a "string" using the split command for the array. After that, we go through each "cell" in the array and put a = in front, because this leads to the fact that leading zeros are not lost. Here is the code.
arLine = line.Split(replace) For Each cell As String In arLine cell = cell.Replace(",", "") cell = String.Format(cellFormat, cell) Next
arLine is an array, and replace is a separator, in this case it is not important. ''
When it passes, arLine is correct, but the values ββin each cell do not change, any thoughts? newer to VB.net and need direction
source share