Hello,
I have a txt file contains
aaaaaa:bbbbbb:cccccc:dddddd
eeeeee:ffffffff:gggggg:fffffffff
mmmmm:nnnnn:hhhhhhh:xxxxxx
I need to find text "eeeeee" and change line at that position to yyyyyy:bbbbb:zzzzzoooo
I have a txt file contains
aaaaaa:bbbbbb:cccccc:dddddd
eeeeee:ffffffff:gggggg:fffffffff
mmmmm:nnnnn:hhhhhhh:xxxxxx
I need to find text "eeeeee" and change line at that position to yyyyyy:bbbbb:zzzzzoooo
B4X:
MyList=File.ReadList(File.DirRootExternal,"/test/done.txt")
For i=0 To MyList.Size-1
Dim MyLine As String =MyList.Get(i)
If MyLine.SubString2(0, MyLine.IndexOf(":")) ="eeeeee" Then
'change
Exit
End If
Next