hi , i'm making a keylogger and i want it to create a text file and log to that file. how would i go about doing this?