Because readLine doesn't read a newline, so the first call you're
getting the first line, and then every other call you're getting the
empty string between the end of the first line, and the newline
character that terminates it.  You need to call readLine, and then
follow it up with something that'll kill the line separator(s).

cheers,
barneyb

On 8/2/05, Ian Skinner <[EMAIL PROTECTED]> wrote:
> Can somebody point out the obvious and show me why this code is creating an 
> endless loop.  I have this CFC that is supposed to read a file using java 
> file reader objects.  For some reason my call to the "readAll()" function 
> causes an endless loop.
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213543
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to