Parse data file

2002-10-01 Thread Matt Simonsen
I need to get 2 fields out of a file which has the following format: #FIELD [tab]NAME=name to put into hash[newline] [tab]DATALINE=value to put with data[newline] [tab]EXTRA=several fields to ignore... [NEWLINE] #NEXTFIELD [tab]NAME ... I have thought of a couple ways I *could* do it, but I

RE: Parse data file

2002-10-01 Thread Nikola Janceski
Message- From: Matt Simonsen [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 7:01 PM To: [EMAIL PROTECTED] Subject: Parse data file I need to get 2 fields out of a file which has the following format: #FIELD [tab]NAME=name to put into hash[newline] [tab]DATALINE=value

Re: Parse data file

2002-10-01 Thread Janek Schleicher
Matt Simonsen wrote at Tue, 01 Oct 2002 01:00:41 +0200: I need to get 2 fields out of a file which has the following format: #FIELD [tab]NAME=name to put into hash[newline] [tab]DATALINE=value to put with data[newline] [tab]EXTRA=several fields to ignore...

Re: Parse data file

2002-10-01 Thread Matt Simonsen
On Tue, 2002-10-01 at 05:34, Janek Schleicher wrote: Matt Simonsen wrote at Tue, 01 Oct 2002 01:00:41 +0200: I need to get 2 fields out of a file which has the following format: I put a real clip below ... should be more helpful. What is the exact data you want to separate. I have an

parse data file

2001-10-23 Thread Prashant Kukde
Hi, I am trying to parse data in my data file. Every record start with the 1 string and end's with 2.In between the data is separated by delimiter | . I want to parse this file and get the record in one variable and do some processing and than move for another record in file. To,