5 lines
102 B
Text
5 lines
102 B
Text
function truncate_file(fname, size):
|
|
open(fname, "r+") do f
|
|
truncate(f, size)
|
|
end
|
|
end
|