I had some trouble using this with the String.Append function. Somebody told me about the Environment.Newline constant in the System.Environment collection.
For general use, Environment.Newline will probably return the correct value when you're running .NET on a Unix machine (via Mono or Rotor), so I would opt for that rather than hard-coded constants. If you need the file, stream, etc. to work in both worlds, then you need to decide which style to use.
Chip H.
If you want to get the best response to a question, please check out FAQ222-2244 first
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.