I want to display a set of characters after a string (or in this case one 
chgarater) in a  text file is found. 

For example, after the search finds the "[" bracket, how can I tell it to 
display a certian amount of characters after this "["?

if the string is [11999922] I want it to display only the characters after 
which would be 11999922

Thanks.

RO
HWW

Here is my code:

<cffile action="read" file="e:\tracetest2.txt" variable="thetrace2">
<pre>
<cfoutput>

<CFSET thetrace2 = #trim(thetrace2)#>
<font face="Verdana" size="1"><b>
#left(thetrace2, 50)#
</b></font>
</pre>

This output tells me the "[" bracket is 36 spaces

<cfset stringToSearch = "#left(thetrace2, 50)#">
   #findoneof("[",stringToSearch)#<br>
   </cfoutput>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291591
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to