[Vala] Gio and stdin



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?

Thanks for your help
        Christian

-- 
|------- Dr. Christian Siefkes ------- christian siefkes net -------
| Homepage: http://www.siefkes.net/ | Blog: http://www.keimform.de/
|    Peer Production Everywhere:       http://peerconomy.org/wiki/
|---------------------------------- OpenPGP Key ID: 0x346452D8 --
Computers are not intelligent. They only think they are.

Attachment: signature.asc
Description: OpenPGP digital signature



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