I'm looking for a way to read multiple files in Vala. There's one example running throughout the internet about reading all files in a folder and sorting them by their type, but I couldn't make something out of that,still trying though. I'm talking about: http://www.valadoc.org/#!api=glib-2.0/GLib.Dir and https://wiki.gnome.org/Projects/Vala/GIOSamples, mostly.
Inside my folder, I have a bunch of files plus my vala program. I need to read all of the files in that folder with a certain filename extension. e.g. Read all .txt files until there's not more .txt files in that folder.
Many thanks!