On Tue, Mar 24, 2009 at 11:50 PM, rasheed abdul <[email protected]> wrote:
> I am want to acess float value in a file.
> For eg.
> If I have a file named ras.txt, which contains float value as follows,
> 12.589
> 0.2356
> 1.235
> 0.123
> then I want to store this float values in array a[10].
Take a look at the function fscanf()
Or, if you are using C++, take a look at the ifstream class.
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi