From: Thomas Preymesser Date: 2008-12-22T10:39:24+09:00 Subject: Re: get first and last line from txt file - how? 2008/12/22 Peņa, Botp : > quick reaction: this would sure to fail on zero-or-one-liners that do not end w a newline, no? Maybe, but this was only code to illustrate my idea. In a real implementation it would be necessary to consider these circumstances. -Thomas -- Thomas Preymesser thopre@gmail.com http://thopre.googlepages.com/ http://thopre.wordpress.com/