View Single Post
  #12   Report Post  
Posted to microsoft.public.excel.programming
Robert Crandal[_3_] Robert Crandal[_3_] is offline
external usenet poster
 
Posts: 161
Default Extract paragraphs from text file (new task)

Hi again Gary! I wanted to approach this a new way.
Suppose I have the following test input, which has 3 paragraphs:

[BEGIN INPUT]
playboys regrows correality requisition droits offered
angeles surfy wile lacrimation aged seignories practicing
hereinto workmanship fuggy municipally asdf underpinnings
brocket unpremeditated pinochle crazier coaeval obviously
able supinated hostler burrows artichoke vivant crosstown
********************
baneful celebrations angle growler landscape beside tzetzes
normal bootery bespoke henhouses tribuneship bouncer
displeasure crewman tenth curarization honestness sensitize
reminisces cometh fuk obscurantists eventualities mechanics
vanity crap nonalignment dowering nephew nonconfidence
********************
chaotically sooners rocketing luckiest holeproof damnableness
soc infertilely supernumerary expertise sulphid frisson
surceases joyously kins drooled agrarianism paraphrases ribby
wittiness grabbiest junketer accumulable hemokonia matriculants
sieged yuio forgoes *staking* nonadjacent offprint mug pawpaw
[END INPUT]


I just want to read the entire file and store each paragraph into
it's own string variable or array. What is an efficient way to
achieve this? (Dont worry about profanity words)

By the way, each paragraph will always be separated by a
border of 25 star characters, except for the first and last
paragraph.

Sorry if I wasn't clear earlier. ~Rob