I want create a new folder named by time, and then generate a txt file inside this folder: reads in the header information first and then reads in data, but the problem is that if there exists this folder, the header will appear in the file, if this folder is not existed, the header will not appear in the txt file.
Thanks for your help.