Getting one line in a huge file with PHP

Posted by JavaRocky on Stack Overflow See other posts from Stack Overflow or by JavaRocky
Published on 2010-05-08T12:33:34Z Indexed on 2010/05/08 12:38 UTC
Read the original article Hit count: 125

Filed under:

How can i get a particular line in a 3 gig text file. The lines are delimited by \n. And i need to be able to get any line on demand.

How can this be done? Only one line need be returned. And i would not like to use any system calls.

Note: There is the same question elsewhere regarding how to do this in bash. I would like to compare it with the PHP equiv.

© Stack Overflow or respective owner

Related posts about php