Re: [PHP] Re: Reading from a file using fgets()
I see what you mean. But, personally, if the documentation didn't explicitly say anything about it, I'd assume that it's from top to bottom and that there's no option--of course, I could be wrong you know, there must be something hidden... - E > >Ok, file() is docuemted, but it doesn't say anything about whether or >not it reads data sequentially from top to bottom or if there's an >option to read bottom to top or anything in between. > >Dave > > >On Thu, 2002-08-29 at 22:37, @ Edwin wrote: > > Or, is it? :) > > > > http://www.php.net/manual/en/function.file.php > > > > - E > > > > > > > >Interesting. It's not documented. > > > > > > > > >On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > > > > Well, this is exactly what function file() does. > > > > > > > > "David Christensen" <[EMAIL PROTECTED]> wrote in message > > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > > When PHP reads from a file using fgets(), does it do it in order? > > > > > Meaning, when reading STDIN from a file, does it read line1, then > > line2, > > > > > line3, and so on until EOF? > > > > > > > > > > My purpose is to read each line of file and push it into an array. > > > > > > > > > > Thanks for your help, > > > > > > > > > > Dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _ $B%-%c%j%"%"%C%W$rL\;X$9$"$J$?$N%J%S%2!<%?!<(B MSN $B="?&!&E>?&(B http://career.msn.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Reading from a file using fgets()
Ok, file() is docuemted, but it doesn't say anything about whether or not it reads data sequentially from top to bottom or if there's an option to read bottom to top or anything in between. Dave On Thu, 2002-08-29 at 22:37, @ Edwin wrote: > Or, is it? :) > > http://www.php.net/manual/en/function.file.php > > - E > > > > >Interesting. It's not documented. > > > > > >On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > > > Well, this is exactly what function file() does. > > > > > > "David Christensen" <[EMAIL PROTECTED]> wrote in message > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > When PHP reads from a file using fgets(), does it do it in order? > > > > Meaning, when reading STDIN from a file, does it read line1, then > line2, > > > > line3, and so on until EOF? > > > > > > > > My purpose is to read each line of file and push it into an array. > > > > > > > > Thanks for your help, > > > > > > > > Dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > _ > 最新のファイナンス情報とライフプランのアドバイス MSN >マネー > http://money.msn.co.jp/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Reading from a file using fgets()
Or, is it? :) http://www.php.net/manual/en/function.file.php - E > >Interesting. It's not documented. > > >On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > > Well, this is exactly what function file() does. > > > > "David Christensen" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > When PHP reads from a file using fgets(), does it do it in order? > > > Meaning, when reading STDIN from a file, does it read line1, then line2, > > > line3, and so on until EOF? > > > > > > My purpose is to read each line of file and push it into an array. > > > > > > Thanks for your help, > > > > > > Dave > > > > > > > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > _ $B:G?7$N%U%!%$%J%s%9>pJs$H%i%$%U%W%i%s$N%"%I%P%$%9(B MSN $B%^%M!<(B http://money.msn.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Reading from a file using fgets()
Interesting. It's not documented. On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > Well, this is exactly what function file() does. > > "David Christensen" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > When PHP reads from a file using fgets(), does it do it in order? > > Meaning, when reading STDIN from a file, does it read line1, then line2, > > line3, and so on until EOF? > > > > My purpose is to read each line of file and push it into an array. > > > > Thanks for your help, > > > > Dave > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Reading from a file using fgets()
Well, this is exactly what function file() does. "David Christensen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When PHP reads from a file using fgets(), does it do it in order? > Meaning, when reading STDIN from a file, does it read line1, then line2, > line3, and so on until EOF? > > My purpose is to read each line of file and push it into an array. > > Thanks for your help, > > Dave > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php