mIRC Homepage
Posted By: uLiKo $read suggestions - 14/05/03 02:14 PM
1) Prevent $read from merging all spaces after eachother to only 1 (no I will not use $chr(160) in the files)

2) Adding and extra N to it so you can return all matching lines from a $read with wildcard, like: $read(filename, [ntsw], [matchtext], [N], [C]) would of course need a switch so mIRC knows if he wants the C match or start from N line. Loops with $readn is just annoying.
Posted By: tontito Re: $read suggestions - 14/05/03 05:14 PM
for the first suggestion you can just use /bread
with this you don't lose a single space smile
Posted By: Raccoon Re: $read suggestions - 18/05/03 02:30 AM
1. $read does not strip the extra spaces, but whatever process displays them on your screen, does. try /set %test $read(file.txt,nl1) where line 1 has many spaces between words. Now look in your Variables list, or even echo $len(%test). The spaces are there, but most commands removes them. We just have to wait for a /echo to support &binvars.

2. You failed to explain how these multiple lines are suppose to all be processed at once. Put them all into a single variable? Load them into a hash table? One way or another, you ARE going to be looping each line of data.

- Raccoon
© mIRC Discussion Forums