Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
GeneralRe: New line with streamwriter Pin
Paladin200016-Mar-11 8:26
Paladin200016-Mar-11 8:26 
GeneralRe: New line with streamwriter Pin
Luc Pattyn16-Mar-11 8:33
sitebuilderLuc Pattyn16-Mar-11 8:33 
GeneralRe: New line with streamwriter Pin
Paladin200016-Mar-11 8:45
Paladin200016-Mar-11 8:45 
GeneralRe: New line with streamwriter Pin
Luc Pattyn16-Mar-11 9:46
sitebuilderLuc Pattyn16-Mar-11 9:46 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 0:24
Pierre besquent17-Mar-11 0:24 
AnswerRe: New line with streamwriter Pin
Luc Pattyn17-Mar-11 4:35
sitebuilderLuc Pattyn17-Mar-11 4:35 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 6:00
Pierre besquent17-Mar-11 6:00 
GeneralRe: New line with streamwriter Pin
Luc Pattyn17-Mar-11 6:29
sitebuilderLuc Pattyn17-Mar-11 6:29 
if you run on Windows, never touch any NewLine property, and simply create a text file in a normal way, with data that is ASCII representable, then the file will be an ASCII file (8b/char) and every WriteLine will insert a CR+LF.

If you aren't getting CR+LF it tells me you are doing something special, I don't know what as there is a lot you still haven't told. If you need any further help, state your operating system, your .NET version, the kind of characters you are having, and all the code of the smallest app that goes wrong.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: New line with streamwriter Pin
jschell16-Mar-11 8:27
jschell16-Mar-11 8:27 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 0:15
Pierre besquent17-Mar-11 0:15 
GeneralRe: New line with streamwriter Pin
jschell17-Mar-11 10:03
jschell17-Mar-11 10:03 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 23:11
Pierre besquent17-Mar-11 23:11 
AnswerRe: New line with streamwriter Pin
Pete O'Hanlon16-Mar-11 8:47
mvePete O'Hanlon16-Mar-11 8:47 
QuestionC# webpage playing a video from server hard drive Pin
twinscythe1233216-Mar-11 2:47
twinscythe1233216-Mar-11 2:47 
AnswerRe: C# webpage playing a video from server hard drive Pin
twinscythe1233216-Mar-11 3:15
twinscythe1233216-Mar-11 3:15 
GeneralRe: C# webpage playing a video from server hard drive Pin
Dan Mos16-Mar-11 5:47
Dan Mos16-Mar-11 5:47 
GeneralRe: C# webpage playing a video from server hard drive Pin
twinscythe1233217-Mar-11 0:59
twinscythe1233217-Mar-11 0:59 
QuestionStreamwriter output Pin
Pierre besquent15-Mar-11 21:53
Pierre besquent15-Mar-11 21:53 
AnswerRe: Streamwriter output Pin
Mycroft Holmes15-Mar-11 22:18
professionalMycroft Holmes15-Mar-11 22:18 
GeneralRe: Streamwriter output Pin
Pierre besquent15-Mar-11 22:51
Pierre besquent15-Mar-11 22:51 
GeneralRe: Streamwriter output Pin
Pete O'Hanlon15-Mar-11 23:05
mvePete O'Hanlon15-Mar-11 23:05 
GeneralRe: Streamwriter output Pin
Pierre besquent15-Mar-11 23:10
Pierre besquent15-Mar-11 23:10 
GeneralRe: Streamwriter output Pin
Pete O'Hanlon15-Mar-11 23:31
mvePete O'Hanlon15-Mar-11 23:31 
GeneralRe: Streamwriter output Pin
Pierre besquent16-Mar-11 0:52
Pierre besquent16-Mar-11 0:52 
AnswerRe: Streamwriter output Pin
Richard MacCutchan15-Mar-11 23:12
mveRichard MacCutchan15-Mar-11 23:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.