Re: Reading a portion of a file

2007-03-09 Thread Gabriel Genellina
En Fri, 09 Mar 2007 11:28:15 -0300, Vulcanius <[EMAIL PROTECTED]> escribió: > Here is the code I've come up with. Please feel free to critique it > and let me know what you would change. Also, as you can see I call > "open(SERVER,'r')" twice; but I want to only call it once, what would > the bes

Re: Reading a portion of a file

2007-03-09 Thread Vulcanius
Here is the code I've come up with. Please feel free to critique it and let me know what you would change. Also, as you can see I call "open(SERVER,'r')" twice; but I want to only call it once, what would the best way to do this be? imp

Re: Reading a portion of a file

2007-03-08 Thread attn . steven . kuo
On Mar 8, 10:35 am, [EMAIL PROTECTED] wrote: (snipped) > > Ok, regex was my first thought because I used to use grep with Perl > and shell scripting to grab everything from one pattern to another > pattern. The file is just an unformatted file. What is below is > exactly what is in the file. The

Re: Reading a portion of a file

2007-03-08 Thread cmfvulcanius
On Mar 8, 12:50 pm, "Jordan" <[EMAIL PROTECTED]> wrote: > On Mar 8, 12:46 pm, "Jordan" <[EMAIL PROTECTED]> wrote: > > > > > On Mar 8, 11:52 am, "Rune Strand" <[EMAIL PROTECTED]> wrote: > > > > On Mar 8, 5:12 pm, [EMAIL PROTECTED] wrote: > > > > > I am using a script with a single file containing al

Re: Reading a portion of a file

2007-03-08 Thread Jordan
On Mar 8, 12:46 pm, "Jordan" <[EMAIL PROTECTED]> wrote: > On Mar 8, 11:52 am, "Rune Strand" <[EMAIL PROTECTED]> wrote: > > > > > On Mar 8, 5:12 pm, [EMAIL PROTECTED] wrote: > > > > I am using a script with a single file containing all data in multiple > > > sections. Each section begins with "#VS:C

Re: Reading a portion of a file

2007-03-08 Thread Jordan
On Mar 8, 11:52 am, "Rune Strand" <[EMAIL PROTECTED]> wrote: > On Mar 8, 5:12 pm, [EMAIL PROTECTED] wrote: > > > I am using a script with a single file containing all data in multiple > > sections. Each section begins with "#VS:CMD:command:START" and ends > > with "#VS:CMD:command:STOP". There is a

Re: Reading a portion of a file

2007-03-08 Thread Rune Strand
On Mar 8, 5:12 pm, [EMAIL PROTECTED] wrote: > I am using a script with a single file containing all data in multiple > sections. Each section begins with "#VS:CMD:command:START" and ends > with "#VS:CMD:command:STOP". There is a blank line in between each > section. I'm looking for the best way to

Reading a portion of a file

2007-03-08 Thread cmfvulcanius
I am using a script with a single file containing all data in multiple sections. Each section begins with "#VS:CMD:command:START" and ends with "#VS:CMD:command:STOP". There is a blank line in between each section. I'm looking for the best way to grab one section at a time. Will I have to read the