lets say i have a text file with the string "ffffffffff" in it and i want to insert "666" after the 2nd "f" in it.. how to do it? i tried the following and it doesnt work..
Dim stream As New System.IO.StreamWriter("xxx.txt")
stream.Write("ffffffffff")
stream.BaseStream.Position = 2
stream.Write("666")
stream.Close()
i tried stream.BaseStream.Seek(2, SeekOrigin.Begin) and it doesnt work too..