SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,788
    Mentioned
    151 Post(s)
    Tagged
    3 Thread(s)

    splitting a document into an array

    Hi folks,
    Although this might seem a basic question, you have to bear in mind that I have a new baby and so not had any sleep for 5 weeks!

    The scenario...
    I have a word document that is split into different areas.

    Sheet 1
    Section 1
    (text)
    Section 2
    (text)
    Section 3
    (text)

    Sheet 2
    Section 1
    (text)
    Section 2
    (text)
    Section 3
    (text)

    So they all follow the same format....

    The Problem.....
    I need to split each sheet into arrays and insert it into a databasse

    The question....
    How can I split the seperate sheets into arrays based on the headers (Section1 etc...)?

    Thanks as always

    SpikeZ
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2003
    Location
    Maryland, USA
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could use file to read the entire document into an array, then split the array based on the sections.
    R
    MH


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •