solarrobor wrote:
I am currently porting a program from C to C++. The program needs to
read the file "/proc/bus/usb/devices".
I am able to open and read from the file using FILE but not when I use
fstream.
Why does it work with FILE and not fstream?
Because in your fstream use there is a logical error on line 42.
What is the solution to making it work using fstream?
The solution is usually to fix the problem. Since you didn't tell
us what the problem actually is, how can we help you fix it?
Another possible solution is not to do anything, just keep using
FILE pointers and you should be OK.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask