Re: [Vala] How to write a string to an IOChannel
- From: "Juerg Billeter" <j bitron ch>
- To: "Frederik" <scumm_fredo gmx net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How to write a string to an IOChannel
- Date: Mon, 28 Apr 2008 13:42:22 +0200 (CEST)
On Mon, April 28, 2008 10:15, Frederik wrote:
I would like to write a string to a GLib IOChannel (a file), but
IOChannel.write_chars() wants a char[] as argument.
We should probably add a get_bytes() or get_utf8_bytes() method to the
string class that returns the UTF-8 bytes. Not sure whether there is an
easy workaround for that right now. However, I recommend you to use
GOutputStream instead of GIOChannel, if you can use GLib 2.16.
GDataOutputStream has a put_string method.
Juerg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]