# [luatex] read and write streams

Hans Hagen pragma at wxs.nl
Thu Nov 19 17:06:15 CET 2015

```On 11/19/2015 2:32 PM, Joseph Wright wrote:
> On 19/11/2015 13:21, jfbu wrote:
>> Hi David and Hans,
>>
>> one question of a neophyte
>>
>> will (or is) code using \immediate\write16{foo} be broken
>> by more output streams ?
>>
>> (by this I mean could 16 end up being assigned to some
>> file output stream number)
>>
>> best
>>
>> Jean-François
>
> Yes (which is where we started with this). With the new set up, the
> first 'certain to be unused' stream is 128. That should therefore be

also, it is rather safe to assume that no user has opened more than 6
streams so 16 is probably still ok (some time to adapt)

> (Aside: At present stream 128 is not working with the W32 build I have,
> SVN 5538, but Hans confirms this is an out-and-out bug so will be solved.)
>
> Joseph
>
>

--

-----------------------------------------------------------------