in reply to Re: Gettin certain lines of text from a text file!
in thread Gettin certain lines of text from a text file!

read them already, thats why I have not posted untill now trying to figure it out. Thanks but i'm just useless so they did not help at all lol, only helped to give me an idea how to do it but still no where near what I need. at it 2 weeks now so said i'd post and see what happens. Thank you though

  • Comment on Re^2: Gettin certain lines of text from a text file!

Replies are listed 'Best First'.
Re^3: Gettin certain lines of text from a text file!
by cdarke (Prior) on Sep 15, 2009 at 12:39 UTC
    but i'm just useless

    STOP THAT!
    You are not useless, you have been dropped in it.

    Describe the problem to yourself, in writing, in English (or Gaelic, or whatever). Look at the data. How do you choose the data to extract? Describe that in natural language, then you might try converting that into a regular expression, if one is needed. If regular expressions make you weak at the knees then that probably means you are normal - but you can always ask here.

    You might start with very simple code reading one line at a time then just printing them out, then gradually refine what it is that you are printing. Once you have what you are looking for then try writing into a spreadsheet. Or create a CSV and manually load it. Small steps.
Re^3: Gettin certain lines of text from a text file!
by Anonymous Monk on Sep 16, 2009 at 15:26 UTC
    You're telling me the "Files and I/O" and "Simple matching" sections didn't help? Maybe you need a book.