Incoming data into array?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • elyob

    Incoming data into array?

    Hi, I'm opening a remote file on a regular basis, the data is in the
    following format and has a line feed of "0D 0A". The spaces are 20 in hex
    mode.

    2006-07-26 22:00:03.000000 4.370996 51.656616
    2006-07-26 22:00:03.000000 2.599964 49.286836
    2006-07-26 22:00:03.000000 0.876824 48.418013
    2006-07-26 22:00:04.000000 1.543656 50.926529
    2006-07-26 22:00:04.000000 1.070219 48.759254

    Firstly, this incoming data is oldest first and is continually updating.
    However it only shows the previous hours data. My main aim is to take this
    data and split it into an array. Currently I'm using file_get_conten ts(),
    and am just wondering what the best method to get this into a workable
    format?

    Thanks


  • Chung Leong

    #2
    Re: Incoming data into array?


    elyob wrote:
    Hi, I'm opening a remote file on a regular basis, the data is in the
    following format and has a line feed of "0D 0A". The spaces are 20 in hex
    mode.
    >
    2006-07-26 22:00:03.000000 4.370996 51.656616
    2006-07-26 22:00:03.000000 2.599964 49.286836
    2006-07-26 22:00:03.000000 0.876824 48.418013
    2006-07-26 22:00:04.000000 1.543656 50.926529
    2006-07-26 22:00:04.000000 1.070219 48.759254
    >
    Firstly, this incoming data is oldest first and is continually updating.
    However it only shows the previous hours data. My main aim is to take this
    data and split it into an array. Currently I'm using file_get_conten ts(),
    and am just wondering what the best method to get this into a workable
    format?
    >
    Thanks
    Reads entire file into an array


    Comment

    • elyob

      #3
      Re: Incoming data into array?


      "Chung Leong" <chernyshevsky@ hotmail.comwrot e in message
      news:1153962861 .032797.37480@m 73g2000cwd.goog legroups.com...
      >
      elyob wrote:
      >Hi, I'm opening a remote file on a regular basis, the data is in the
      >following format and has a line feed of "0D 0A". The spaces are 20 in hex
      >mode.
      >>
      >2006-07-26 22:00:03.000000 4.370996 51.656616
      >2006-07-26 22:00:03.000000 2.599964 49.286836
      >2006-07-26 22:00:03.000000 0.876824 48.418013
      >2006-07-26 22:00:04.000000 1.543656 50.926529
      >2006-07-26 22:00:04.000000 1.070219 48.759254
      >>
      >Firstly, this incoming data is oldest first and is continually updating.
      >However it only shows the previous hours data. My main aim is to take
      >this
      >data and split it into an array. Currently I'm using file_get_conten ts(),
      >and am just wondering what the best method to get this into a workable
      >format?
      >>
      >Thanks
      >
      Reads entire file into an array

      >
      I always like short answers, thanks!



      Comment

      • Miguel Cruz

        #4
        Re: Incoming data into array?

        "elyob" <newsprofile@gm ail.comwrote:
        Hi, I'm opening a remote file on a regular basis, the data is in the
        following format and has a line feed of "0D 0A". The spaces are 20 in hex
        mode.
        >
        2006-07-26 22:00:03.000000 4.370996 51.656616
        2006-07-26 22:00:03.000000 2.599964 49.286836
        2006-07-26 22:00:03.000000 0.876824 48.418013
        2006-07-26 22:00:04.000000 1.543656 50.926529
        2006-07-26 22:00:04.000000 1.070219 48.759254
        >
        Firstly, this incoming data is oldest first and is continually updating.
        However it only shows the previous hours data. My main aim is to take this
        data and split it into an array. Currently I'm using file_get_conten ts(),
        and am just wondering what the best method to get this into a workable
        format?
        Are there no spaces within fields? Just use fgetcsv() with ' ' as the
        delimiter.

        miguel
        --
        Photos from 40 countries on 5 continents: http://travel.u.nu
        Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
        Airports of the world: http://airport.u.nu

        Comment

        Working...