471,092 Members | 977 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

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 1091

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.