This is a multi-part message in MIME format.

------=_NextPart_000_0009_01BFBD0F.9C5F65C0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have a file that I am reading with CFFILE.  The variable of which is =
"transformed".
The following will give me the position of the first line break.

<cfset firstline =3D #REFind("#chr(13)##chr(10)#", transformed)#>

How would I find the position of all line breaks if I did not know how =
many lines a file was going to have?

------=_NextPart_000_0009_01BFBD0F.9C5F65C0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have a file that I am reading with =
CFFILE.&nbsp;=20
The variable of which is "transformed".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The following will give me the position =
of the=20
first line break.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;cfset firstline =3D =
#REFind("#chr(13)##chr(10)#",=20
transformed)#&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How would I find the position of all =
line breaks if=20
I did not know how many lines a file was going to=20
have?</FONT></DIV></BODY></HTML>

------=_NextPart_000_0009_01BFBD0F.9C5F65C0--

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to