Use this:

Code:
alias validfn return $nofile($1) $+ $mkfn($nopath($1))


//write $validfn(ip.txt)