How I can Give a float Variable (number from text file)
Hello
i have a text at this path C:\wamp\www\usd_ask.txt
and this file is Just have a number like 3.4087
i wana give this value to a variable
Can you help me?:)
btw, what firedraco was saying was that you make a stringstream, then use the functions of stringstream to pull in the variable. It's worth doing if you're learning C++ and not just straight C
Hello, really i cant understand the good way to make it....
But look!!
let the float variable is "usdask"
so its float usdask;
and i wanna give it this number which putted at the text file "3.415";
this is the file link "C:\wamp\www\usd_ask.txt"
How is the code which i can use????