i cant seem to send my html file through a socket, when vere i connect to the server via web browser http://localhost:7000 it just freezes. and the server stops
open_ptr = open("/home/user/www/home.html",'r');
while((n = read(open_ptr,buffer,256)) > 0)
{
n = write( new_sock,buffer,256);
}
close(open_ptr);
return 0;
}