noobie mkdir problem/question

jordan.taylor2 at gmail.com jordan.taylor2 at gmail.com
Sat Mar 25 20:51:30 EST 2006


First, what version of python are you using? 2.4.2 (and some previous
versions) use file() instead of open(), although open may still work.

also, if your code in the previous post is still using:

outputFname = given + '.log'
outputFile = open(os.path.join(xrefs,outputFname), 'w')
I hope you have 'given' defined somewhere, since it's not in the code
you show.

give this a try:

output = file(xrefs + r'\filenamewhatever', 'w')
output.write(data)
output.close()




More information about the Python-list mailing list