|Hi Razor 2.3,|
Thank you for the info I now have all the lines of text displayed and converted but I have a problem with the last line of text displaying first and the first line of text displaying last.
Also if I write the contents displayed in the Richtextbox to a file the text in the file shows as a continues line. I seem to be missing somthing but I am not sure what.
This is the code I have at present.
Dim FILE_NAME As String = "C:\Test.txt"
Dim sr As New System.IO.StreamReader(FILE_NAME)
Dim FormatStr As String = ""
Do Until sr.EndOfStream
Dim sb As New StringBuilder(sr.ReadLine & vbCr)
sb.AppendLine(FormatStr) 'Note: You'll have to write your own FormatStr(Of String) As String
sb = sb.Insert(5, " ")
sb = sb.Insert(12, " ")
sb = sb.Insert(19, " ")
sb = sb.Insert(25, " ")
sb = sb.Insert(29, " ")
sb = sb.Insert(32, " ")
sb = sb.Insert(37, " ")
sb = sb.Insert(44, " ")
FormatStr = sb.ToString
RichTextBox1.Text = FormatStr
Dim objWriter As New System.IO.StreamWriter("C:\TextTest.txt")