Hi all,
I have been trying alot. I going to try to show you what i want to do.
I have a Log.dat file:
I need to insert new data from a scanner and replace "%black" and 000001.00 . This file can contain 1 line or 50 lines.
New data is recieved in a listview.
My intention is to add listview item(1) "%Pink" and replace that at line 1 with "%black" And listview2.item(1) will be replacing 000001.00 And so on. Loop till done
I am trying this with the following code:
Dim List1 As String
List1 = File.ReadString(File.DirDefaultExternal, "Log.dat")
Then i split
Dim sarray() As String =Regex.Split("\|",List1)
With this i get everything between the "|" like Mahares example. But i also need the numbers between the last "|" and the NUL.
So i tried the following, what i thought was good. But it wasnt. Where could i found more info about "\|([^|]+)\|" and how to use it?
Dim sarray() As String =Regex.Split("\|([^|]+)\|",List1)
The file is created by a external system, and i cannot acces that system. It gives some kind of signature on the .dat file. When i write a new .dat file it doesnt work.
If i replace the characthers between "|" it works. That why i need to do it like this.
I hope this is better to understand then my first question.
Regards,
Ray