Where/how is clientSocket declared? And has it been set up with a valid socket
handle? That isn't shown in your code snippet. It looks like this code is
reading from a text file and trying to send each character from the file over a
socket?
Also, did you intend for the "std::cout << c" to be indented? It doesn't need
to be, as it's not in a separate block of code.
Nightfox
---
� Synchronet � Digital Distortion: digitaldistortionbbs.com