How do you read the first n lines of a file in PHP where the line lengths are variable and line n has '----------' on it (that is finding line n by pattern matching)? I see how to read the whole thing, but I only want a few lines of many files. (Has to work on Windows and Unix). Thanks.
posted by pissfactory
on May 24, 2004 -