[erlang-questions] file:open on devices

Evans, Matthew <>
Fri Dec 24 15:06:47 CET 2010


It's not possible to do this from Erlang IRC:

http://www.erlang.org/faq/problems.html#id57466

Your best bet is probably a port-driver or a NIF.

________________________________________
From:  [] On Behalf Of Alexey Romanov []
Sent: Friday, December 24, 2010 6:58 AM
To: Erlang Questions
Subject: [erlang-questions] file:open on devices

I have tried to use sl to communicate with a serial port, but with
limited success (so far, at least). The next thing to try was just
opening the file and reading/writing directly to it, but this fails as
well:

(documentation of file:open/2)
Typical error reasons:

eisdir

    The named file is not a regular file. It may be a directory, a
fifo, or a device.

Is it possible to open device files using some other library function?

Yours, Alexey Romanov

________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:



More information about the erlang-questions mailing list