Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^2: Adaptive parser for tab delimited text file

by reaper9187 (Scribe)
on Nov 01, 2012 at 10:37 UTC ( #1001795=note: print w/replies, xml ) Need Help??

in reply to Re: Adaptive parser for tab delimited text file
in thread Adaptive parser for tab delimited text file

No.. Its different.. The earlier issues was resolved and it works fine now. My current problem is tht i need to read a particular section of text from the entire file and then iteratively perform more checks to determine the size of the block and start and end limters to find out the size of block i need to be working on (this size is variable and it changes as and when the user makes changes).
To make it more understandable, the execution of code follows these steps: 1. identify the keyword "CELL" to determine the start of the particular block
2. match the cell name(next line of CELL,eg LUC123A in this case)
3. Identify the block size (in terms of number of lines ) between the two limiters ,i.e first and second occurence of the word "CELL"

I keep getting confused for some reason. i'd really like some insight .. Sorry for the trouble
  • Comment on Re^2: Adaptive parser for tab delimited text file

Replies are listed 'Best First'.
Re^3: Adaptive parser for tab delimited text file
by BrowserUk (Pope) on Nov 01, 2012 at 10:56 UTC

    Are you searching the file for just this block(s)? Or do you 'encounter' this block as your process the other parts of the file?

    Are the last two lines of your (extremely minimalist) sample indication that another matching Section follows?

    Oooh. The sample data just changed out of all recognition.............Oh well. Ignore my questions, they are no longer meaningful.

    Best of luck.

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001795]
[TStanley]: I'm sitting in the airport in Tampa, Florida at the moment, getting ready to head home.
[talexb]: TStanley I'm flying to Vegas in two weeks time. After that flights leaving Vegas and Phoenix are late at night .. I've been hearing that it gets so hot that the air isn't dense enough for planes to take off. Weird. Guess you won't have that problem.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2017-06-23 14:13 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (548 votes). Check out past polls.