Jump to content


Photo

reading file


  • Please log in to reply
2 replies to this topic

#1 scs

scs
  • Members
  • PipPipPip
  • Advanced Member
  • 86 posts
  • LocationUSA

Posted 16 August 2006 - 07:52 PM

Im trying to read a file line by line. I found this premade function and it didnt work. There are functions for read a file different ways. just not line by line. Does any one know a simple way I can do this?

thanx  ;D
zach

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 16 August 2006 - 08:23 PM

use the file function (http://www.php.net/file).

It reads the file into an array, which you can then parse line by line.

#3 scs

scs
  • Members
  • PipPipPip
  • Advanced Member
  • 86 posts
  • LocationUSA

Posted 16 August 2006 - 08:29 PM

thanx!  ;D ;D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users