Article View: free.it.visual-basic
Article #4101Read the port LPT1:
From: Carlos Azevedo
Date: Wed, 06 Jun 2001 10:12
Date: Wed, 06 Jun 2001 10:12
28 lines
1695 bytes
1695 bytes
Please how can I read a the port LPT1: or COM1:
I put this code in 2 computers but I can't read the port lpt1 or Com1
the pc who write make it work, but the pc who read stop at line "Line Input
#FileNumber, myString"
code for pc who read the port LPT1:
FileNumber = FreeFile
Open "LPT1:" For Input As #FileNumber
Line Input #FileNumber, myString
Close #FileNumber
--------------------------------------
code for pc who write the port LPT1:
FileNumber = FreeFile
Open "LPT1:" For Output As #FileNumber
Print #FileNumber, myString
Close #FileNumber
-------
sorry my english
Carlos
Technical Details
Message-ID:
<9fkvns$oof$1@venus.telepac.pt>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!npeer.kpnqwest.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!cass.news.pipex.net!pipex!warm.news.pipex.net!pipex!brown.telepac.pt!news.telepac.pt!venus.telepac.pt!news.telepac.pt!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f94ee,4f62815d2fefa3ec,start X-Google-Attributes: gidf94ee,public X-Google-ArrivalTime: 2001-06-06 03:09:20 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!npeer.kpnqwest.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!cass.news.pipex.net!pipex!warm.news.pipex.net!pipex!brown.telepac.pt!news.telepac.pt!venus.telepac.pt!news.telepac.pt!not-for-mail From: "Carlos Azevedo" <carlosaz@mail.telepac.pt> Newsgroups: free.it.visual-basic Subject: Read the port LPT1: Date: Wed, 6 Jun 2001 11:12:01 +0100 Lines: 31 Message-ID: <9fkvns$oof$1@venus.telepac.pt> NNTP-Posting-Host: 194.65.194.73 X-Trace: venus.telepac.pt 991822396 25359 194.65.194.73 (6 Jun 2001 10:13:16 GMT) X-Complaints-To: abuse@mail.telepac.pt NNTP-Posting-Date: 6 Jun 2001 10:13:16 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200