/write -n that will prevent mIRC from adding automaticly $crlf at the begining of
my line.
I mean
//set %string abc | //set %fileSize $file(abc.txt).size | //write abc.txt %string | //echo -a string length is $len(%string) and file is: $calc(%fileSize - $file(abc.txt).size)"
echos 7!
if the file was ending with $crlf so it echos 5
Sorry I dont beleive you got those results with the above line of code, That above code well echo negitive values since %filesize is always smaller than the current $file(abc.txt).size.
And even when I fixed it to be $calc($file(abc.txt).size - %fileSize) I recieved "5" for write abc.txt and "3" for write -n abc.txt, no crlf$ was appeneded prior to my text on either no -n or -n.
You may however have issues with the method windows has as its default text saving format (maybe)
(i know this is adjustable but i dont remeber where, mainly becuase I have never encountered it)
An example of the type of thing im talking about can be seen in REGEDIT when you export a registry section, w2k and xp export using 2 byte per charcter formating by default, you must specificly tell it to use REGEDIT4 win9x/nt4 formating to get plain text