I need a couple of pointers on text file processing.
First I use cffile to get the file into a memory variable
Now I need to:
- parse the file one line at a time searching for a specific string and when I find it
- read 7 more lines and then begin reading the next 15 lines, one line at a time
cfset rowcount = 1
/cfif
cfif rowcount GT 7 AND rowcount LT 24
cfquery INSERT statement goes here
cfoutput#i#br/cfoutput
/cfif
/cfloop
I need a couple of pointers on text file processing.
First I use cffile to get the file
Excellent. It is good to see someone post the answer even when they find it
themselves. Helps the next poor fellow.
Thanks!
David (aka... The next poor fellow. lol)
__
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM /
3 matches
Mail list logo