Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-lcc!mordor!berry@loiosh.s1.gov From: berry@loiosh.s1.gov (Berry Kercheval) Newsgroups: comp.unix.wizards Subject: Re: is this wise? Keywords: /dev/stdin, /dev/hosts Message-ID: <24343@mordor.s1.gov> Date: 4 May 89 00:11:42 GMT References: <378@chessene.UUCP> <693@micropen> Sender: news@mordor.s1.gov Reply-To: berry@loiosh.s1.gov (Berry Kercheval) Organization: LLNL AIT Project Lines: 16 In-reply-to: dave@micropen (David F. Carlson) In article <693@micropen>, dave@micropen (David F Carlson) writes: >In article <378@chessene.UUCP>, root@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