tofile command