Re: Break large file down into multiple files

2009-02-13 Thread Chris
On Feb 13, 1:19 pm, Chris wrote: > On Feb 13, 10:02 am, redbaron wrote: > > > > > > New to python I have a large file that I need to break up into > > > multiple smaller files. I need to break the large file into sections > > > where there are 65535 lines and then write those sections to sepe

Re: Break large file down into multiple files

2009-02-13 Thread Tim Chase
New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then write those sections to seperate files. I am familiar with opening and writing files, however, I am struggling with creating

Re: Break large file down into multiple files

2009-02-13 Thread Chris
On Feb 13, 10:02 am, redbaron wrote: > > New to python I have a large file that I need to break up into > > multiple smaller files. I need to break the large file into sections > > where there are 65535 lines and then write those sections to seperate > > files. > > If your lines are variable-l

Re: Break large file down into multiple files

2009-02-13 Thread Gabriel Genellina
En Fri, 13 Feb 2009 05:43:02 -0200, brianrpsgt1 escribió: On Feb 12, 11:02 pm, "Gabriel Genellina" wrote: En Fri, 13 Feb 2009 04:44:54 -0200, brianrpsgt1   escribió: > New to python I have a large file that I need to break upinto > multiple smallerfiles. I need to break the large file

Re: Break large file down into multiple files

2009-02-13 Thread redbaron
> New to python I have a large file that I need to break up into > multiple smaller files. I need to break the large file into sections > where there are 65535 lines and then write those sections to seperate > files. If your lines are variable-length, then look at itertools recipes. from iter

Re: Break large file down into multiple files

2009-02-12 Thread brianrpsgt1
On Feb 12, 11:02 pm, "Gabriel Genellina" wrote: > En Fri, 13 Feb 2009 04:44:54 -0200, brianrpsgt1   > escribió: > > > New to python I have a large file that I need to break upinto > > multiple smallerfiles. I need to break the large fileintosections > > where there are 65535 lines and then wr

Re: Break large file down into multiple files

2009-02-12 Thread Gabriel Genellina
En Fri, 13 Feb 2009 04:44:54 -0200, brianrpsgt1 escribió: New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then write those sections to seperate files. I am familiar with op

Break large file down into multiple files

2009-02-12 Thread brianrpsgt1
New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then write those sections to seperate files. I am familiar with opening and writing files, however, I am struggling with creating