I am trying to plug in many .txt files into ArcMap using the below code:
myList=arcpy.GetParameterAsText(0)
print myList
with open('C://folder//myList.txt', 'w') as outfile:
    for fname in windList:
        with open(fname) as infile:
            for line in infile:
                outfile.write(line)
All this does is take multiple text files and essentially merge the two together.
This results in an error shown here:
with open(fname) as infile:
IOError: [Errno 2] No such file or directory: u'C'
Any ideas?
Thanks for any help you can offer
