mIRC Homepage
Posted By: deegee /write: too many $CR's - 13/09/07 05:37 AM
Using $lf adds a chr13 even tho it's not asked for...
  • //write -n asdf $+(asdf,$lf) | bread asdf 0 10 &a | echo -ag $bvar(&a,1-) | .remove asdf
    97 115 100 102 13 10

Using $crlf add TWO chr13's
  • //write -n asdf $+(asdf,$crlf) | bread asdf 0 10 &a | echo -ag $bvar(&a,1-) | .remove asdf
    97 115 100 102 13 13 10
Posted By: Khaled Re: /write: too many $CR's - 13/09/07 11:42 AM
The $lf is automatically expanded to $crlf by the underlying Windows command that is being used. If you want complete control over $lf and $cr you would need to use binary files instead.
Posted By: deegee Re: /write: too many $CR's - 13/09/07 03:30 PM
Oh well...life wasn't meant to be easy. tired
© mIRC Discussion Forums