2 Replies Latest reply on Feb 27, 2008 5:55 AM by RossRitchey

    Insert line break into .txt file

    RossRitchey Level 4
      Alright, so I am writing out to a simple .txt file, and I need to force a line break in it. My immediate thought is to use "\n" as that is a line break. So, I write it out to the text file, and instead of a line break, I see the "complex character" symbol (you know, that square that shows up with unknown characters). I have tried the various ASCII values to no avail, tried \r, even tried copy-pasting a line break in from notepad. Nothing seems to be working for me. How do I do this?

      _logFile = "\n";

      stream = new FileStream();