file:open on devices

Alexey Romanov alexey.v.romanov@REDACTED
Fri Dec 24 12:58:51 CET 2010

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

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


    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

More information about the erlang-questions mailing list