I've got several large text files to manipulate.

Any line that looks like this:
DE*MY TITLE / HERE

I need to make into this:
DE*My Title / Here

I hope there's an easier way to do this than follows:
1. CFFILE read the data
2. Loop a REFind function with "return subexpressions" on, creating an
array of structures of arrays
3. Loop the array of structures of arrays and do an "Insert" function
that replaces the string with a "title case" UDF

Hmm... I just thought of a more appealing way: I could loop through
the file contents one line at a time, and do a CFFILE "append" to
another file, as I parse each line.

If the latter seems like a better solution, how do I iterate over the
file contents one line at a time? I can't treat the file contents as a
list, with crlf (chr(13)&chr(10)) as the delimiter, since
two-character delimiters aren't allowed, AFAIK, so do I do it?

Thanks,
Jamie
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to