Read Files!

David Grill Watson dgwatson at kent.edu
Thu Aug 24 14:02:50 UTC 2000


Something like this, perhaps?

float myArray[20];
ifstream in("filename");

for (int i = 0; i < 20; i++) {
	in >> myArray[i];
}

You might want to get a basic C++ book if you don't know how to do things 
like that - that's EXTREMELY elementary stuff.

-DGW

On Thu, 24 Aug 2000, you wrote:
> Hi!
> I'm a beginner user of KDevelop and I need to read some datas into a file
> and I don't know how can I do this...
> There are numeric datas in each line, and there's a line which contains a
> lot of numeric datas each one separated by a space...
> I need these datas to plot a graphic, and I have no idea how can I get
> these datas...and manipulate them...
> Can somebody help me?!
>
> Thanks.
>
> Souza.
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com




More information about the KDevelop mailing list