Quote:
Originally Posted by
majid.merkava
so for which applications it is good to use buffered I/O and for which it is better to use unbuffered I/O?
As a general rule (and this is only my opinion) it's generally better to use the C standard library functions in stdio.h where you can (i.e. for file I/O) and then use the POSIX standard functions in unistd.h etc. when you need to do I/O on file descriptors for sockets and such.
Generally, you may as well try and use the most portable interfaces you can (i.e. stdio.h in this case).