mIRC Home    About    Download    Register    News    Help

Print Thread
#237655 24/05/12 08:12 AM
Joined: May 2012
Posts: 1
B
Bob_E Offline OP
Mostly harmless
OP Offline
Mostly harmless
B
Joined: May 2012
Posts: 1
How do i get /fseek file1 to goto the eof?? (v7.22)

Bob_E #237669 24/05/12 04:55 PM
Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Well, the end of the file is the position represented by the length of the file, here is a quick example:

Code:
alias test_seek {
write -c test $+(test,$crlf,test1,$crlf,test2,$crlf)
fopen test test
;$lof is the same as $file().size
fseek test $lof(test)
fwrite -n test test3
fclose test
}

Type /test_seek and then then type "/run notepad test" to see that the line "test3" has been added at the end


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard