By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,421 Members | 1,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,421 IT Pros & Developers. It's quick & easy.

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

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

Jul 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a

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

P: n/a

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