I can't tell exactly what it is you're doing, but it sounds like it's
little more than calling some 3rd party API once you've done a regex
match,

You're making a mountain out of a mole hill.

Choose a better tool, text processing it not fast (or easy) with C#,
it was never designed to be.

A craftsman solves jobs better and more efficiently with the correct
choice of tool.



2008/12/22 AstroDrabb <[email protected]>:
>
> Or tr, perl, dos2unix, etc.  Yeah, thanks for the tip captain obvious.
>
> The C# app isn't just doing that.  It is processing a 700+ MB file,
> and you know, actually
> doing stuff.  As I am writing the output it would be smartest to make
> the EOL's appropiate for the
> destination platform.  In this case, Unix even though the app is
> processed on Win2k3.
>
> Processing a 700+MB file and then processing it again just to change
> the EOL would
> be stupid.  Hence me wanted to do it as I am processing the file.
>
> On Sat, Dec 20, 2008 at 4:04 AM, Jack Smith <[email protected]> 
> wrote:
>>
>> Or you could use a more appropriate tool like sed.
>>
>> Why would you ever write a C# application to do something so trivial ?
>

Reply via email to