mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2007
Posts: 3
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Sep 2007
Posts: 3
Hi.. I'm looking to try and write something to display text from a file into a custom window.

A friend suggested I look into /fopen,$fread and /fclose to manipulate the file whilst working on it. I can open window, but I can't seem to write the data to it.

Can anyone point me in the right direction for how to do it.

Joined: Mar 2006
Posts: 395
T
Pan-dimensional mouse
Offline
Pan-dimensional mouse
T
Joined: Mar 2006
Posts: 395
The fastest way would probably be:

//filter -fw textfile.txt @windowname


[02:16] * Titanic has quit IRC (Excess Flood)
Joined: Sep 2007
Posts: 3
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Sep 2007
Posts: 3
Thank you so much, works a wonder.

Joined: Mar 2006
Posts: 395
T
Pan-dimensional mouse
Offline
Pan-dimensional mouse
T
Joined: Mar 2006
Posts: 395
Glad to help smile


[02:16] * Titanic has quit IRC (Excess Flood)
Joined: Sep 2007
Posts: 3
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Sep 2007
Posts: 3
Going to be a pain.. just been playing with it.. and I see sorts alphabetically from the lines in the file.. is there a switch to keep it in the order entered.. or am I going to have to find some other way of reading it?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
/help /loadbuf

/loadbuf @window file.txt


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
/filter doesn't sort the lines if you don't tell it to (with the appropriate switches). Are you using it exactly like The_JD said?

This would also happen (with both /filter and /loadbuf) if you created the @window with the -s switch (sort the incoming lines automatically).

Last edited by qwerty; 19/02/08 10:32 PM.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Mar 2006
Posts: 395
T
Pan-dimensional mouse
Offline
Pan-dimensional mouse
T
Joined: Mar 2006
Posts: 395
I've tested it, both versions and they are printing it perfectly (tested on versions.txt).

You must have either played with the command switches or window switches as mentioned above.


[02:16] * Titanic has quit IRC (Excess Flood)

Link Copied to Clipboard