I need to get a certain paragraph out from a list of files which I do a cfloop over.
The paragraph I need begins with the word "This" and the end of
the paragraph is followed by a row of asterisks.
Here is an example of what one of the files may contain,
....text...
This file contains .....
paragraph ends.
*************************
So far I have
<cfloop index="file" list="filelist" >
<cffile action="READ" file="#filedir#\#dirQuery.name#" variable="filedata">
<cfloop index="single_data" list="#filedata#" delimiters="#chr(9)#" >
#filedata#
</cfloop>
</cfloop>
this gives me back everything in each file, but I need to parse out the paragraph described above.
I will then insert it into a table .
How do I parse it out ?
Thanks,
olmos.
The paragraph I need begins with the word "This" and the end of
the paragraph is followed by a row of asterisks.
Here is an example of what one of the files may contain,
....text...
This file contains .....
paragraph ends.
*************************
So far I have
<cfloop index="file" list="filelist" >
<cffile action="READ" file="#filedir#\#dirQuery.name#" variable="filedata">
<cfloop index="single_data" list="#filedata#" delimiters="#chr(9)#" >
#filedata#
</cfloop>
</cfloop>
this gives me back everything in each file, but I need to parse out the paragraph described above.
I will then insert it into a table .
How do I parse it out ?
Thanks,
olmos.