Re: [Vala] GZFileStream question
- From: Jürg Billeter <j bitron ch>
- To: Kerby A Shedden <kshedden umich edu>
- Cc: vala-list gnome org
- Subject: Re: [Vala] GZFileStream question
- Date: Sun, 02 Mar 2008 13:34:51 +0100
Hi Kerby,
On Sat, 2008-03-01 at 14:06 -0500, Kerby A Shedden wrote:
I'm having trouble reading a gzipped file in vala using the short example
below.
I've fixed the bindings so that the following example works fine now:
using ZLib;
using GLib;
public class test_libz {
static void main (string[] args) {
var fid = GZFileStream.open("test.gz", "rb");
var buffer = new char[100];
string s = fid.gets (buffer);
stdout.printf("%s\n", s);
}
}
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]