Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!umich!ox.com!math.fu-berlin.de!unidui!unido!rwthinf!cip-s08!wolfram From: wolfram@cip-s08.informatik.rwth-aachen.de (Wolfram Roesler) Newsgroups: comp.lang.c Subject: Re: reading from a parallel port Message-ID: Date: 11 Apr 91 11:50:45 GMT References: <1991Apr8.182526.17852@ux1.cso.uiuc.edu> Sender: news@rwthinf.UUCP Lines: 13 djk@ux1.cso.uiuc.edu (Doug Kelly) writes: >Hello, Im trying to write a program to interface to my Epson ES-300C color >scanner. It uses a bi-directional parallel interface, and i cant figure out >how to 'read' from a parallel port. Im using borland turbo c, any help would >be appreciated. Thanks This is not a C question since C has no standard mechanism to read from interfaces. The answer to your question is dependant upon the OS you are using. In Unix for example all ports can be accessed via files in the /dev directory. There is no OS-independant solution. Sorry Okami-san