# [luatex] File I/O.

luigi scarso luigi.scarso at gmail.com
Mon Aug 2 14:13:37 CEST 2010

On Sat, Jul 31, 2010 at 8:44 AM, Taco Hoekwater <taco at elvenkind.com> wrote:
> On 07/31/2010 12:52 AM, Paul Isambert wrote:
>>
>> but it really seems archaic in view of what LuaTeX usually does. So does
>> this
>> means there's no function like "tex.filewrite(n,message)" that would be
>> totally
>> equivalent to (and compatible with) \write<n>{<message>}? I find it quite
>> hard
>> to believe, which is why I still think I must have missed something in the
>> manual.
>
> It really is archaic. You did not miss anything, somehow we forgot
> to add write stream support to the texio library. I'll add a tracker
> item for the next beta (it is actually quite trivial to implement).
>
> Best wishes,
> Taco
>

Why not something like
filename  = texio.openioname(<number>)
and then
\directlua{%
texio.write(texio.openioname(\the\test),"message2")
}
?

--
luigi

More information about the luatex mailing list