I have a multi-lined text box that users can save as a text file. Here is the code that I have:

VB Code:
  1. Private Sub mnuSaveAs_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSaveAs.Click
  2.         SaveFileDialog.Filter = "Text files (*.txt)|*.txt"
  3.         SaveFileDialog.ShowDialog()
  4.         If SaveFileDialog.FileName <> "" Then
  5.             FileOpen(1, SaveFileDialog.FileName, OpenMode.Output)
  6.             PrintLine(1, txtReport.Text)  'copy text to disk
  7.             FileClose(1)
  8.         End If
  9.     End Sub

Obviously it writes everything to a single line of text in the file. What is the easiest way around this so that it saves the the txt file the same way it appears on screen?

Thanks,

Jim