how can I read tring and numbers from a file?

From: _mario.lat (mario.lat_at_libero.it)
Date: 06/30/04

  • Next message: Rufus V. Smith: "Re: how can I read tring and numbers from a file?"
    Date: Wed, 30 Jun 2004 12:15:57 GMT
    
    

    Sorry for my question,
    I'm new to C++.
    I'd like to read data from a file (data.txt) whi si made like that:

    xxx_string_xxxx 12 23.232 32
    yyy_string2_fjsd 23 344.123 233
    sdgfsagasfgsa 22 24.34 34.11
    .....

    each line have one string at begininng then three numers: how can I read
    this file and put
    this value in a vector?
    How can I do?

    Thank you in advance for the time you'lll spend for me.
    Mario.


  • Next message: Rufus V. Smith: "Re: how can I read tring and numbers from a file?"