I have a file named "abc+def+mm+dd+yyyy.csv" in directory "$path/survey responses". The file is being downloaded directly from Qualtrics and I want to not have to change the file name.
However, when I run the following code:
Code:
local myfilelist : dir "$path/survey responses" files "*.csv" foreach file of local myfilelist { di in red "`file'" import delimited using "`file'" , clear varnames(1) }
Is there anything I can do to solve this?
Perhaps, is there another way I can import an arbitrary file name from a specific directory?
Thanks for the help everyone!
0 Response to Unrecognized characters in filename when importing using: "local myfiles: dir "directory" files "*.csv"
Post a Comment