mIRC Home    About    Download    Register    News    Help

Print Thread
#208411 20/01/09 11:35 AM
Joined: May 2008
Posts: 127
J
Vogon poet
OP Offline
Vogon poet
J
Joined: May 2008
Posts: 127
I'm trying to /write ban list items in a file, only I want them listed in the file from oldest to newest. So basically I need to write to a file "backwards", where it doesn't add the info on a new line, instead it adds it to the first line.

/write -l1 would replace the first line all the time, so that won't work. Any help is appreciated. Thanks.

Joined: Feb 2003
Posts: 106
L
Vogon poet
Offline
Vogon poet
L
Joined: Feb 2003
Posts: 106
Code:
/write -il1 yourfile.txt %yourdata 
will insert a new line at the very beginning of yourfile.txt. Note the -i switch for insert.
Hope this helps


-
Just because it never happened doesn't mean it isn't true.
Joined: May 2008
Posts: 127
J
Vogon poet
OP Offline
Vogon poet
J
Joined: May 2008
Posts: 127
Thanks, I try this out. Obviously if I don't reply back, it means it works. :P

Thanks man. laugh


Link Copied to Clipboard