Anonymous user
Truncate a file: Difference between revisions
m
→{{header|Elena}}
(Adds Clojure solution) |
|||
Line 442:
Cannot open file "<File name with full path>. The system cannot find the file specified.
=={{header|Elena}}==
ELENA 3.4:
<lang elena>import system'io.
import extensions.
{
set length:
[
stream
stream close.
Line 457 ⟶ 458:
}
[
if (
[ console printLine:"Please provide the path to the file and a new length". AbortException new; raise ].
var length :=
ifnot (file isAvailable)
[ console printLine("File ",file," does not exist"). AbortException new; raise ].
file
]
=={{header|Erlang}}==
|