[Vala] triming



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.


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