Have a look at Converting GEDCOM Files for some good code examples on how you rework data files. chipmunk gave a very slick Perl solution and I gave a more plodding baby perl reply. You will find all the basic code you need there.
You do not specify what separates your records which is usually vital to know. Is it say a blank line as speculated upon by tye or something else. A sample of two records of input and two records of the desired output would help. Preferably also post the code you are having a problem with.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Newbie Trying to Read and Reformat File
by tachyon
in thread Newbie Trying to Read and Reformat File
by tbfive
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |