How to delete the contents of files?

use std::fs or use::io ?

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

1 Like

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

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