Check that file exists: Difference between revisions
→{{header|Vala}}
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 (
var file = File.new_for_path (f);
var exists = file.query_exists ();
|