Re: Downloading unix \n text files, convert to \r\n non-unix?
- From: "Zytan" <zytanlithium@xxxxxxxxx>
- Date: 6 Apr 2007 12:51:17 -0700
No. As he said, it replaces \n with \r\n without replacing \r\n with
\r\r\n. In ensures that exactly 0 \r is pre-fixed before \n before being
replaced, to phrase it in the same way you did.
Ah, ok. Regex is foreign to me.
You are right that \r\r\n would not be proper, which is why he wrote the
code to avoid creating instances of that.
Right.
I would think it would make more sense to
design the code to replace *both* \n and \r\n with Environement.NewLine.
Yes, that's what I was thinking Arne attempting to do (which is above
and beyond my original concern). And I agree this would be best.
Thanks, Pete.
Zytan
.
- References:
- Downloading unix \n text files, convert to \r\n non-unix?
- From: Zytan
- Re: Downloading unix \n text files, convert to \r\n non-unix?
- From: Zytan
- Re: Downloading unix \n text files, convert to \r\n non-unix?
- From: Arne Vajhøj
- Re: Downloading unix \n text files, convert to \r\n non-unix?
- From: Arne Vajhøj
- Re: Downloading unix \n text files, convert to \r\n non-unix?
- From: Zytan
- Re: Downloading unix \n text files, convert to \r\n non-unix?
- From: Arne Vajhøj
- Re: Downloading unix \n text files, convert to \r\n non-unix?
- From: Zytan
- Re: Downloading unix \n text files, convert to \r\n non-unix?
- From: Peter Duniho
- Downloading unix \n text files, convert to \r\n non-unix?
- Prev by Date: Re: Panel w/ border help
- Next by Date: Re: Are a Static method's variables staic too?
- Previous by thread: Re: Downloading unix \n text files, convert to \r\n non-unix?
- Next by thread: Re: Downloading unix \n text files, convert to \r\n non-unix?
- Index(es):
Relevant Pages
|