Just to clarify so I do not look like a "complete" moron... which I probably already do. I would never use the write function instead of fprintf when working with file i/o or printing text. Like you said grumpy, that would just be silly. I was actually talking about using fprintf to write buffered strings over a tcp socket. I was just curious to know if using fprintf could be used at all with writing over a socket and if doable, would it be efficient? And would it have an advantage over using the write function. But I will just stick with the write function, as my book uses it for a reason.