1) sr.ReadToEnd 2) I actually don't know why you are using Dim tempstr As String = arguments.Replace("""", ""). RichTextBox can show quotes correctly. It would be also bad decision to use that if you want to make some IDE editor (" is a quite usually symbol in programming)
2009/9/9 intermidiate programmer <zack1...@gmail.com> > > On your form.load add the following to open a richtext file. > Dim arguments As String = Command() > Try > Dim tempstr As String = arguments.Replace("""", "") > RichTextBox1.LoadFile(tempstr) > > Catch > > End Try > > Just make sure you are using richtextbox1 > > To load just a text file use this: > > Dim arguments As String = Command() > Try > Dim tempstr As String = arguments.Replace("""", "") > Dim sr As New System.IO.StreamReader(tempstr) > RichTextBox1.text = sr.readtoend > > Catch > > End Try > > I hope this helped! I would love to be a moderator here and post more. >