Guest User

Untitled

a guest
Jul 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. For i As Integer = 0 To arrayIndexNos.Count - 1
  2. Dim tableEncode = File.OpenText("E:\Table.txt")
  3. While tableEncode.Peek <> -1
  4. Dim tableEncodeLine = tableEncode.ReadLine.Split("|").ToArray
  5.  
  6. If textString.IndexOf(tableEncodeLine(1)) = arrayIndexNos(i) And tableEncodeLine(1).Length = 3 Then
  7. Dim indexPlace = arrayIndexNos(i)
  8.  
  9. textString = textString.Remove(indexPlace, 3)
  10. textString = textString.Insert(indexPlace, tableEncodeLine(0))
  11. End If
  12. End While
  13. tableEncode.Close()
  14. Next
  15. TextBox1.Text = textString
Add Comment
Please, Sign In to add comment