<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
[Steve Vinoski]:<br>
>  The io man page defines the device() type as follows:<br>
>      device() = atom() | pid()<br>
><br>
>      An IO device. Either standard_io, standard_error, a registered<br>
>      name, or a pid handling IO protocols (returned from file:open/2).<br>
><br>
>    But this is incomplete, since file:open/2 can also return an<br>
>    instance of a file_descriptor record.<br>
><br>
> Also meant to add that there are functions in the io module that take<br>
> device() type parameters but do not handle file_descriptor records.<br>
<br>
If file:open() is called with the 'raw' option a file_descriptor<br>
record is returned. It cannot be used with the io module.<br>
<br>
I'm not sure, but perhaps you've confused the types io:device() and<br>
file:io_device() with each other?<br>
<br>
Best regards,<br>
<br>
Hans Bolinder, Erlang/OTP team, Ericsson<br>
<br>
</div>
</body>
</html>