I am having trouble finding good websites to reference on Stream I/O so I can do some research on it. Any good references?
I am having trouble finding good websites to reference on Stream I/O so I can do some research on it. Any good references?
This one looks good. It is very concise/precise.
Read the stuff on "low level" i/o, too. I think people learning C actually get sold the idea that there is something better or easier about using "streams" (when really there is not) because otherwise they would not be motivated to understand them, which they do provide a conceptual contrast or development. But the low level functions are actually simpler and work better. The higher level ones (streaming) use the low level ones in the background anyway.
Last edited by MK27; 02-21-2009 at 07:15 PM.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
Oh I definitely understand what your saying MK, I should have specified that I also am making a webpage specific to stream I/O and that is why I would like to gather as much information as I can on the subject. Thank you though
Any suggestions?
Hi! What I meant was that since stream I/O functions are built on top of low level functions, a great way to present them would be (for example) to use some source code for fopen(), etc. (you could distill this from which ever "real world" source you want) which uses the lower level functions, and thus demonstrate how stream I/O works, and what the commands do when you use them.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
I'd say that one advantage of streams over low level functions is that they are standard.Originally Posted by MK27
They are not necessarily simpler, e.g., many functions in the Windows API do not really follow the "do one thing and do it well" principle that is more common place in *nix interfaces.Originally Posted by MK27
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
Definitely, though I think that fread() is a closer equivalent to read().Originally Posted by MK27
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)