Writes user particulars into a .txt file.