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. Advertising

  2. goosen_cug

    Alex Vinokur Guest

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

  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. Advertising

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,087
    =?Utf-8?B?Q3VydF9DIFtNVlBd?=
    Oct 20, 2005
  2. Ferro
    Replies:
    7
    Views:
    14,541
    Dave Monroe
    Oct 29, 2003
  3. Anonieko

    HttpHandlers - Learn Them. Use Them.

    Anonieko, Jun 15, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    528
    tdavisjr
    Jun 16, 2006
  4. why the lucky stiff
    Replies:
    5
    Views:
    148
    why the lucky stiff
    Sep 22, 2004
  5. Greg Halsey

    read binary .dat file?

    Greg Halsey, May 24, 2007, in forum: Ruby
    Replies:
    1
    Views:
    394
    Paul Stickney
    May 26, 2007
Loading...

Share This Page