how to read the information of a file(.dat),and use them in a program.

Discussion in 'C++' started by goosen_cug, Jul 3, 2006.

  1. goosen_cug

    goosen_cug Guest

    how to read the information of a file(.dat),and use them in a program.
    thank you !
     
    goosen_cug, Jul 3, 2006
    #1
    1. Advertisements

  2. goosen_cug

    Alex Vinokur Guest

    Alex Vinokur, Jul 3, 2006
    #2
    1. Advertisements

  3. goosen_cug

    Howard Guest

    "Alex Vinokur" <> wrote in message
    news:...
    >
    > goosen_cug wrote:
    >> how to read the information of a file(.dat),and use them in a program.
    >> thank you !

    >
    > Read file into vector<vector<string> >.
    > Sample of usage can be seen at:
    > http://groups.google.com/group/alt.sources/msg/5ba6823f110aa9cf
    >


    Reading a file as text is fine, if the file is text. But what if the file
    is binary?

    To the OP: without knowing what the contents that .dat file is, and what you
    want to do with it, it's pretty hard to suggest how to read and "use" it.
    (The fact that it has a .dat filename extension doesn't tell us anything
    about the file.)

    -Howard
     
    Howard, Jul 3, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Krish
    Replies:
    1
    Views:
    1,223
    =?Utf-8?B?Q3VydF9DIFtNVlBd?=
    Oct 20, 2005
  2. Ferro
    Replies:
    7
    Views:
    15,811
    Dave Monroe
    Oct 29, 2003
  3. munif
    Replies:
    0
    Views:
    385
    munif
    Dec 22, 2004
  4. Anonieko

    HttpHandlers - Learn Them. Use Them.

    Anonieko, Jun 15, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    812
    tdavisjr
    Jun 16, 2006
  5. vijayanand2k
    Replies:
    0
    Views:
    628
    vijayanand2k
    Apr 2, 2009
  6. Greg Halsey

    read binary .dat file?

    Greg Halsey, May 24, 2007, in forum: Ruby
    Replies:
    1
    Views:
    638
    Paul Stickney
    May 26, 2007
  7. Alex Dowad
    Replies:
    4
    Views:
    676
    Michel Demazure
    May 1, 2010
  8. Replies:
    13
    Views:
    390
    Paul Lalli
    Jul 25, 2005
Loading...