f=open("filename","w") f.print str
open("filename","w"){|f|f.print str}
n=ARGV[0] || puts("data file: ") || STDIN.readline