Hi,
Thnx all ot u, i got the answer, i was using wrong option "rw", but somewhere i read this option. ok fine
Type: Posts; User: ankurcse
Hi,
Thnx all ot u, i got the answer, i was using wrong option "rw", but somewhere i read this option. ok fine
ya i have checked, fd is set to 0
hi siavoshkc ,
i m not getting ur ques, file "text" is regular file which should be created by "rw" option in fopen() .
In Linux platform:
#include <stdio.h>
#include <fcntl.h>
int main()
{
FILE *fd ;
fd = fopen( "text","rw" ) ;
Now i m writing key lines that clears program purpose, & i think u can make out some points from below lines: Client.c
struct sockaddr_in serv_addr ;
struct hostent *server ;
char...
HI,
Hi,
i made server program in c on linux, accepting portno as argument, and i made client program on same architecture accepting hostname & portno as arguments, but when i...
Thnx for ur reply, i got sufficient help.
Hi,
what is diff bet fopen() & open, similarly fread() & read() so on...
which is better & which is preferable.
can any one explain with example