Jump to content

Check that file exists: Difference between revisions

→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)"
(→‎{{header|Vlang}}: Rename "Vlang" in "V (Vlang)")
Line 3,006:
Console.WriteLine(If(IO.Directory.Exists(IO.Path.DirectorySeparatorChar & "output.txt"), _
"file exists", "file doesn't exists"))</syntaxhighlight>
=={{header|V (Vlang)}}==
<syntaxhighlight lang="go">// Check file exists in V
// Tectonics: v run check-that-file-exists.v
Line 3,045:
os.is_file('empty.txt'): true
os.is_file("`Abdu'l-Bahá.txt"): true</pre>
 
=={{header|Wren}}==
Empty files and directories have been created beforehand.
451

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.