Truncate a file: Difference between revisions

Content added Content deleted
Line 998: Line 998:


=={{header|R}}==
=={{header|R}}==

<lang R>
<lang R>
truncate_file <- function(filename, n_bytes) {
truncate_file <- function(filename, n_bytes) {