Page 1 of 1
Help! (with a probably simply answered topic)
Posted: Mon May 04, 2009 3:46 pm
by P.C. Vielle
Hello, I'm new to the site, and also a bit new to PHP programming (but I do have a background in JavaScript). I would like to create a function to process a text file and split it along all of the carriage returns.
Help, please!
Re: Help! (with a probably simply answered topic)
Posted: Mon May 04, 2009 4:13 pm
by requinix
Oddly enough,
there's already a function for that.
If you want to write your own (why?) then use
fopen,
fread, and
fclose. Each of those links has examples on how to use them.
Re: Help! (with a probably simply answered topic)
Posted: Wed May 06, 2009 4:28 pm
by P.C. Vielle
Wow. I'd seen that function in use but never thought that it would do what I wanted it to.
I feel stupid now . . .
*sulk*
*Oh wait! I have a script to write!*