Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!agate!ucbvax!decwrl!labrea!rutgers!bpa!cbmvax!vu-vlsi!devon!chessene!root From: root@chessene.UUCP (Mark Buda) Newsgroups: comp.unix.wizards Subject: is this wise? Keywords: /dev/stdin, /dev/hosts Message-ID: <378@chessene.UUCP> Date: 30 Apr 89 01:59:06 GMT Organization: Competitive Computer Systems, Lancaster PA Lines: 21 Consider this (and ignore the lack of error checking): /* finger.c */ #include main() { FILE *f; int c; f = fopen("/dev/hosts/uunet.uu.net/tcp/79", "r+"); fprintf(f, "\r\n"); while ((c = getc(f)) != EOF) putchar(c); fclose(f); } There. Isn't that much nicer than sockets? Mark Buda hermit@chessene.uucp hermit%chessene.uucp@uunet.uu.net ...!rutgers!bpa!vu-vlsi!devon!chessene!hermit devon.lns.pa.us!chessene!hermit