Check that file exists: Difference between revisions
Content added Content deleted
mNo edit summary |
No edit summary |
||
Line 836: | Line 836: | ||
filenameOnly$ = right$(fullPath$, len(fullPath$)-pathLength) |
filenameOnly$ = right$(fullPath$, len(fullPath$)-pathLength) |
||
end function</lang> |
end function</lang> |
||
=={{header|Little}}== |
|||
<lang C> if (exists("input.txt")) { |
|||
puts("The file \"input.txt\" exist"); |
|||
} |
|||
if (exists("/input.txt")) { |
|||
puts("The file \"/input.txt\" exist"); |
|||
} |
|||
if (exists("docs")) { |
|||
puts("The file \"docs\" exist"); |
|||
} |
|||
if (exists("/docs")) { |
|||
puts("The file \"/docs\" exist"); |
|||
}</lang> |
|||
=={{header|LiveCode}}== |
=={{header|LiveCode}}== |