#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    2
    Rep Power
    0

    Thumbs down quick file i/o question


    I have a huge file of numbers separated by commas...

    ex)
    1,2,3,4,5,6

    how do i go through the file and separate each number so I can store all the numbers in an array...

    i guess my question is how to i use the comma as a deliminator...

    -thanks in advance...
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    792
    You can use strtok, but be careful with it.

    Also, please use a better subject title next time, you can review the sticky thread at the top of this forum for more information on how to post a question.

IMN logo majestic logo threadwatch logo seochat tools logo