Am 07.05.2010 11:33, schrieb Rolf Schmidt:
> Hello Rolf-Werner
>
>> DIM hFile AS File
>> DIM sLine AS String
>>
>> hFile = PIPE "/tmp/FIFO1" FOR INPUT
>>
>> PRINT "Now let's start:"
>>
>> WHILE NOT Eof(hFile)
>>     LINE INPUT #hFile, sLine
>>     PRINT sLine
>> WEND
>>
>> PRINT "That's it."
>>
>
> You can't wait until EOF on a named pipe! Also a 'tail' on a named pipe will
> never give you some data - but 'cat' do!
>
> Just read and find another mechanism to stop reading.
>
> Hope that helps
> Rolf
>

Errr - but this is exactly the proposal from the documentation. It 
should be updated if it's wrong

Ok, I'll try to find another way...

Rolf-Werner ;-)


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

_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to