473,395 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1176

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: cherry | last post by:
Dear All, I have written a program in sharepoint, in which will call a Web Service of another Sharepoint portal server so that documents from sharepoint portal server A can push document to...
5
by: ComicCaper | last post by:
Hi all, I use a quiz program that accepts a text file for questions and answers in this format: Question Answer1 <----is the correct answer. Quiz randomizes answers. Answer2 Answer3...
4
by: gdarian216 | last post by:
I am doing a multi file program and I got it to work correctly in a single file but when I split it up it isn't working properly. I keep getting errors when i compile. Can anyone help me figure out...
1
by: gdarian216 | last post by:
I am writing a multifile program and it worked when it was all in one file. I have gotten all of the errors out of the program except when I go to output the change the quarters are right but the...
3
by: ravibantu | last post by:
Hi guys, I am a newbie to python. Does anybody know how i can read a dat file into python and convert into xcel format? Thank you ravi
3
by: Warlop3 | last post by:
Hi first time so bear with me, I have a program that records the split and length times of swimmers, upto 8 lanes and upto a distance of what ever i create the array the program works really well and...
5
by: cdove | last post by:
I am an A-level IT student and i am trying to make a program that read results from a .txt file, displays the name, subject, mark and grade. The grade is supposed to be interpreted from the mark...
1
by: sadanand | last post by:
Hi, I am a beginer to perl progmig. When I run the following program.. use File::Find; use File::Stat; use Time::Local;
2
iam_clint
by: iam_clint | last post by:
Hello everyone I'm still learning vb.net and I'm stuck on something. Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.