Dear statalist,
I am trying to append a list of files using this code
Which worked the first time I did it, but then it started giving me the error
I tried with
but the error persists. How can I effectively drop a file handle? Any help would be much appreciated. Thank you!
Simone
I am trying to append a list of files using this code
Code:
local tempdir "mytempdir" cd "`tempdir'" ! dir file_output_* /a-d /b >filelist.txt file open myfile using "filelist.txt", read file read myfile line use `line' save "mydir\output_all", replace *save master_data, replace file read myfile line while r(eof)==0 { append using `line' file read myfile line } file close myfile
Code:
file handle myfile already exists
Code:
macro drop myfile
Simone
Comment