摘要:
MSDN上的异步socket 服务端例子2006-11-22 17:12:01|分类: 代码学习 |标签: |字号大中小订阅Imports SystemImports System.NetImports System.Net.SocketsImports System.TextImports System.Threading' State object for reading client data asynchronously'Public Class StateObject ' Client socket. Public workSocket As Socket = 阅读全文
摘要:
/// /// 文件有关的操作类/// public class FileOperate{ /// /// 删除文件 /// /// 文件的全路径. /// bool public bool DeleteFile(string FileFullPath) { if (File.Exists(FileFullPath) == true) //用静态类判断文件是否存在 { File.SetAttributes(FileFullPath, FileAttributes.Normal); //设置文件的属性为正常(如果文件为只读的话直接删除会报错) File.Delete(FileFullPath.. 阅读全文