468,456 Members | 1,702 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,456 developers. It's quick & easy.

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

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

Jul 3 '06 #1
2 1055

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.s...a6823f110aa9cf
--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn

Jul 3 '06 #2

"Alex Vinokur" <al****@users.sourceforge.netwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
>
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.s...a6823f110aa9cf
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
Jul 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by ComicCaper | last post: by
1 post views Thread by sadanand | last post: by
iam_clint
2 posts views Thread by iam_clint | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by subhajit12345 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.