mIRC Homepage
Posted By: TQ_ length of text in bytes - 08/09/03 08:02 PM
i need to get the lengh of text/var in bytes but i did not found anything suitable in the help. i tried writing the text in a file and then gettng $bytes(file,b) but it wouldn`t work. any suggestions
Posted By: theRat Re: length of text in bytes - 08/09/03 08:42 PM
/help $len
Posted By: TQ_ Re: length of text in bytes - 08/09/03 08:53 PM
said I needed length in BYTES
Posted By: SladeKraven Re: length of text in bytes - 08/09/03 09:00 PM
$bytes($file(file.txt), b)
Posted By: TQ_ Re: length of text in bytes - 08/09/03 09:14 PM
10x
Posted By: SladeKraven Re: length of text in bytes - 08/09/03 09:26 PM
I'm sorry. 10x?
Posted By: qwerty Re: length of text in bytes - 08/09/03 11:11 PM
...and since 1 character is 1 byte, $len() (which gives the total number of characters in the string) is EXACTLY what you want.
© mIRC Discussion Forums