Merging Lists in ArcMap/Python Script -


i trying plug in many .txt files arcmap using below code:

mylist=arcpy.getparameterastext(0) print mylist    open('c://folder//mylist.txt', 'w') outfile:     fname in windlist:         open(fname) infile:             line in infile:                 outfile.write(line) 

all take multiple text files , merge 2 together.

this results in error shown here:

with open(fname) infile: ioerror: [errno 2] no such file or directory: u'c' 

any ideas?

thanks can offer


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -