On Sat, Feb 19, 2011 at 12:42 PM, Rajesh kumar <[email protected]> wrote: > How can i read a barcode using a C program. > > I can able to read barcode manually in a gedit. i Need to create a c > program which reads the barcode device and write the data to a text file.
Depends on what hardware barcode scanner you are using. Easiest ones to use are scanners with keyboard wedges - you connect it in between your keyboard and PS/2 port. The scanner emulates key strokes, so it's exactly the same as if someone typed the actual barcode using the keyboard. You don't need to do anything special in C, just read stdin. RS232 barcode scanners will typically come with API and library. - Raja _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
