M
Matt McGonigle
Hi all,
Please help me out with this. Perhaps it is a dumb
question, but I can't seem to make it work. I am doing a
file conversion using an unformatted binary file for input
and outputting to a normal text file. I need to read in a
float from the binary file, but it sets my input stream to
failbit. Is there a special way I can read in floats? All
I am doing is
ifstream inFile("input.dta");
float limitValue;
inFile >> limitValue;
to input it. Can someone please tell me how to go about
getting this to work?
Thanks,
Matt
Please help me out with this. Perhaps it is a dumb
question, but I can't seem to make it work. I am doing a
file conversion using an unformatted binary file for input
and outputting to a normal text file. I need to read in a
float from the binary file, but it sets my input stream to
failbit. Is there a special way I can read in floats? All
I am doing is
ifstream inFile("input.dta");
float limitValue;
inFile >> limitValue;
to input it. Can someone please tell me how to go about
getting this to work?
Thanks,
Matt