RosettaCodeData/Task/Check-that-file-exists/TUSCRIPT/check-that-file-exists.tu
2013-04-11 11:14:19 -07:00

12 lines
255 B
Turing

$$ MODE TUSCRIPT
file="input.txt",directory="docs"
IF (file=='file') THEN
PRINT file, " exists"
ELSE
PRINT/ERROR file," not exists"
ENDIF
IF (directory=='project') THEN
PRINT directory," exists"
ELSE
PRINT/ERROR "directory ",directory," not exists"
ENDIF