I have a large (4 MB) text file that contains lines like those below. Is there a way, maybe using StrToFile(), that I can send the different blocks to separate files? I want to include the header between the dashed lines as well as the detail before the next header.
---------------------------------------------------------------------------------------------------
00000015 Copy this block into a file called Import.txt and put into appropriate Export directory
---------------------------------------------------------------------------------------------------
1,HIPAA,HIPAA,20080102,EXP_00D7280001.TIF
1,Office Notes,Office Notes,20080102,EXP_00D7260001.TIF
1,Prescriptions,Prescriptions,20080102,EXP_00D7160001.TIF
---------------------------------------------------------------------------------------------------
00000016 Copy this block into a file called Import.txt and put into appropriate Export directory
---------------------------------------------------------------------------------------------------
1,HIPAA,HIPAA,20080102,EXP_00D7280001.TIF
1,Office Notes,Office Notes,20080102,EXP_00D7260001.TIF