Anonymous user
Truncate a file: Difference between revisions
→{{header|Elena}}
Catskill549 (talk | contribs) |
|||
Line 411:
Cannot open file "<File name with full path>. The system cannot find the file specified.
=={{header|Elena}}==
<lang elena>#import system'io.
#import extensions.
{
[
stream set &length:length.
stream close.
]
}
[
if ('program'arguments length != 3)
[ console << "Please provide the path to the file and a new length".
ifnot (fileName file_path is &available)
fileName file_path set &length:length.
].</lang>
|