Check that file exists: Difference between revisions

Line 1,814:
<lang vala>int main (string[] args) {
string[] files = {"input.txt", "docs", Path.DIR_SEPARATOR_S + "input.txt", Path.DIR_SEPARATOR_S + "docs"};
foreach (stringvar f in files) {
var file = File.new_for_path (f);
var exists = file.query_exists ();
24

edits