Something error about file write function
Posted: Sat Jun 02, 2012 6:04 am
Today I write a Script to download newlisp's benchmark code.
But I Can't find file in my directory.
I was scared! It been eat ! OMG
But I Can't find file in my directory.
I was scared! It been eat ! OMG
Code: Select all
(set 'page (get-url "http://www.newlisp.org/benchmarks/"))
(set 'files (find-all {(syntax\.cgi\?benchmarks/.*newlisp\.txt)\"} page $1)) ;ye , this is error filename, so suk!
(println files)
(dolist (file files)
(write-file (string "./"file)
(get-url (string "http://www.newlisp.org/" file)))
(println "->" file))
(exit)