Jump to content

Truncate a file: Difference between revisions

m
→‎{{header|Perl 6}}: use native type
m (added whitespace before the TOC (table of contents), added other whitespace to the task's preamble.)
m (→‎{{header|Perl 6}}: use native type)
Line 730:
truncate("file", 567);</lang>
=={{header|Perl 6}}==
{{worksWorks with|Rakudo Starrakudo|2013-022016.07}}
<lang perl6>use NativeCall;
 
sub truncate(Str, Intint32 --> intint32) is native {*}
 
sub MAIN (Str $file, Int $to) {
2,392

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.