mIRC Home    About    Download    Register    News    Help

Print Thread
#24199 14/05/03 02:14 PM
Joined: May 2003
Posts: 3
U
uLiKo Offline OP
Self-satisified door
OP Offline
Self-satisified door
U
Joined: May 2003
Posts: 3
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.

#24200 14/05/03 05:14 PM
Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
for the first suggestion you can just use /bread
with this you don't lose a single space smile

#24201 18/05/03 02:30 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard