mIRC Home    About    Download    Register    News    Help

Print Thread
#185724 13/09/07 05:37 AM
Joined: Jun 2006
Posts: 508
D
deegee Offline OP
Fjord artisan
OP Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
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

Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
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.

Joined: Jun 2006
Posts: 508
D
deegee Offline OP
Fjord artisan
OP Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Oh well...life wasn't meant to be easy. tired


Link Copied to Clipboard