Why do you want it written to a text file?