Extracting one record from multiple-records textfile

Extracting one record from multiple-records textfile

Post by giuseppega » Thu, 29 Nov 2007 04:29:13

Hello there. I'm a real beginner and I was wondering if you could be
so kind to help me on this.
I have a text file, containing a number of varying length documents,
all tagged with DOC-START and DOC-END, structured as follows:

content of the document

some text


sdfdf fdff ee


I need to take every document and pass it to a parsing function, that
accepts a file with *a single* document, that is

some text

My file contains lots of these records, so picking each document and
writing it into a new file is not an option. How can I extract the
documents one at a time from the file? Is it possible e.g. to put one
such record iteratively into a temporary file and pass this to the

Your help would be greatly appreciated.


1. Replace one multiple quantity record with multiple records

2. extract multiple records to access from one word form?

I'm setting up a Word form that customers can use to submit product
registrations, and an Access database to store the data they send, one
record per product registered. I found this site -
to extract the form data to an Access table, but I have a minor

The code on that site seems to require unique fields, meaning each
instance of the form would be one record. However, my customers want
to send one form per end user - which could be anywhere from one to
100 separate products.

Is it possible to adjust the code found at the link above to treat
multiple form fields with the same name (such as 15 instances of
"serialnumber") as separate records, and copy form fields that only
appear once (such as "customername") into the appropriate field in
each record?

Also, if there are any variables in that code other than the field
names in Access and Word (such as "text1" and "favorite food") that
need to be changed depending on what I name things and where I save
them, please point them out to me. I haven't really learned VBA yet,
so I'm flying blind.


(I apologize if this is a double post... it timed out on me the first

3. Convert multiple records with same primary key to one records

4. Creating multiple records from one record

5. Combine multiple records into one record

6. Multiple Record Types In Flat File Merged Into One Record In D

7. Flat file one record to multiple record types

8. Multiple Record Types In Flat File Merged Into One Record In Desti

9. Create one record from multiple records

10. Multiple occurence of record as there is only one record in table needs help

11. Multiple records that contain a checkbox.One record should be chec

12. Combine Multiple Records into One Record

13. multiple record info queried into one record

14. Query combining multiple records from one table can't add records

15. Trying to combine multiple records into one record in a Query