in reply to Re^2: Bad file descriptor error
in thread Bad file descriptor error

And what is on the line 41 of list.txt? An empty line?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^4: Bad file descriptor error
by zing (Beadle) on Sep 05, 2012 at 08:31 UTC
    Christ!!!! yes that was it. Thanks a lot to you all. God bless.

      You could have found that yourself if you printed out the lines as your program went through them, or if you added the text of the line to your error message.