How to delete the contents of files?

#1

use std::fs or use::io ?

0 Likes

#2

Just the contents, leaving an empty file? http://doc.rust-lang.org/stable/std/fs/struct.File.html#method.set_len

0 Likes

#3

Thank you! 按照您的提示,我解决了我的问题,再次表示由衷的感谢!,谢谢!抱歉我的英文不好。[chinese]

0 Likes

closed #4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

0 Likes