f=new File('a') f<<'' print f.text f.text="$System.in"