Re: [Vala] Gio and stdin



On Sat, Jun 11, 2011 at 08:57:10PM +0200, Christian Siefkes wrote:
Hi all,

I use Gio to read files line by line, as in the example at
https://live.gnome.org/Vala/GIOSamples#Reading_Text_File_Line_by_Line .
I would like to support the frequent Unix convention that '-' as filename
means "read from standard", but I didn't find a way to convert a FileStream
(stdin) to an InputStream. Can anyone tell me how to do it?

You can create a unix input stream with fd 0.

-- 
http://www.debian.org - The Universal Operating System

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]