find new line

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

find new line

Post by itsmani1 »

Hi
I want to read this file line by line, I mean 1st want to read 1st line and then 2nd line in file.
any solution.

File:
2/17/2005, 25.71 , 25.86 , 25.60 , 25.65 ,67024800
2/18/2005, 25.64 , 25.65 , 25.40 , 25.48 ,77091100
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

fgets() .. or, if it's a CSV file like it appears to be, fgetcsv().
Post Reply