How to delete the contents of files?


#1

use std::fs or use::io ?


#2

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


#3

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