is this wise?

Berry Kercheval berry at loiosh.s1.gov
Thu May 4 10:11:42 AEST 1989


In article <693 at micropen>, dave at micropen (David F Carlson) writes:
>In article <378 at chessene.UUCP>, root at chessene.UUCP (Mark Buda) writes:
>! Consider this (and ignore the lack of error checking):
>! 
>! FILE *f;
>! f = fopen("/dev/hosts/uunet.uu.net/tcp/79", "r+");
>! fprintf(f, "\r\n");
>! fclose(f);
>! 
>! There. Isn't that much nicer than sockets?
>
>Writing on a FILE opened for reading is never nicer than sockets.

Um, try R'ing TFM.  That is opened for UPDATE (reading and writing).

  --berry



More information about the Comp.unix.wizards mailing list