"Carl Gilbert" <cn*@newsgroup.nospam> wrote in message news:OH*************@TK2MSFTNGP09.phx.gbl...
Having got the file and the Xml, how can I then write the Xml to the file?
Dim writer As System.IO.StreamWriter
writer = New System.IO.StreamWriter( _
filename, _
False,
System.Text.Encoding.Unicode)
writer.Write( xmlStr )
writer.Flush( )
writer.Close( )
Also, how could I load the Xml back in to a string using an OpenFileDialog
(openFile) or similar?
Dim xmlStr As String = ""
If ( dlgFileOpen.ShowDialog( ) == DialogResult.OK ) Then
Dim inStream As System.IO.Stream
inStream = dlgFileOpen.OpenFile( )
If ( Not inStream Is Nothing ) Then
Dim reader As System.IO.StreamReader
reader = New System.IO.StreamReader( inStream)
xmlStr = reader.ReadToEnd( )
reader.Close( )
End If
End If
Derek Harmon