reading from file

Discussion in 'PHP' started by shyami, Apr 7, 2007.

  1. #1
    Hi,
    i am having one lengthy text file, in that

    * for each record is having 26 fields , field seperated by ","
    * each line is ended with "%"
    * record sze is vary

    so now i am going to read that file content after expolde that, through code i need to insert that into mysql table.

    how can i read one line? that is upto "%" is one line

    plz give me a idea,


    Thanks
    shyami
     
    shyami, Apr 7, 2007 IP
  2. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Could you post maybe 3~ lines so we can see the format exactly as is (it makes it easier :))
     
    CodyRo, Apr 7, 2007 IP