On Fri, Apr 13, 2012 at 12:29 PM, Mic <[email protected]> wrote:

> Hello,
> How to split strings and remove '\n' and spaces? In python I did it in the
> following way:
>
>    for line in f:
>        try:
>            parts = [part.strip() for part in line.split(',')]
>        except IndexError:
>            continue
>
> Thank you in advance.
>

http://valadoc.org/#!api=glib-2.0/string.strip
http://valadoc.org/#!api=glib-2.0/string.split

-- 
www.debian.org - The Universal Operating System
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to