Re: IOError:[Errno 27] File too large

2013-03-14 Thread ch . valderanis
> Taking a wild guess, I think that you are using a Samba share on a Linux > > server. A file "FILENAME.xml;" was accidentally creating on this share > > from the Linux filesystem layer, since Linux will allow you to use > > semicolons in file names. But samba enforces the same restrictions

Re: IOError:[Errno 27] File too large

2013-03-13 Thread ch . valderanis
Dear Steven, Thank you very much both for your answer and of course your comments. They are taken into account. I found out that when I touch FILENAME.sub in the command line, I get the same error. So I guess it isn't a problem with the language but rather deeper. I will solve this first before

IOError:[Errno 27] File too large

2013-03-13 Thread ch . valderanis
Hi, Relatively newcomer here. The following code fails with the above error: python version used 2.6.2 under linux filestring='somestring' for files in glob.glob('*'): f2=open(files.replace('.xml','.sub'),'w') f2.write(filestring+files) f2.close() The glob commands retur