just subtle differences, one returns a handle, the other a pointer. One has a little more supporting functions, and buffered/non-buffered, file locking etc.
Since this is C++, the stream class object is the one to use.
in fact what i want to know, it's teh difference between open-read and fopen-fread (some parameters I/O...).
i'ven't got the same result when i read /dev/telnet/xxxx
You can only fopen 256 files but you can open more than 256 files. If you do 256 opens then try an fopen, the fopen will fail.
The number of files you can fopen is kernel configurable but I don't know of anyone who has tried it and you are warned not to do it as it may have side effects on the rest of the system.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.