[S] Worked on nim.

This commit is contained in:
eline
2023-11-29 00:22:39 +01:00
parent 8e703198b8
commit e774316a70
10 changed files with 1089 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
import winim/lean
proc fileExists(filename: cstring): bool =
result = GetFileAttributesA(filename) != INVALID_FILE_ATTRIBUTES
const
filename = "C:\\path\\to\\your\\file.txt"
if fileExists(filename):
echo "The file exists!"
else:
echo "The file does not exist."