2011年7月4日

C# Path Examples

摘要: You need ways to deal with filenames and paths in Windows in your C# programs. Windows uses different directory separators than other platforms. Additionally, you have to escape the \ character as \\, making the syntax harder to understand. Here we see how to use the excellent Path class in the .NET 阅读全文

posted @ 2011-07-04 13:37 qih33 阅读(780) 评论(0) 推荐(0)

System.IO 读写二进制、字符串、byte[]

摘要: 读写二进制的类:System.IO.BinaryReaderSystem.IO.BinaryWriter读写字符串的类:System.IO.TextReaderSystem.IO.TextWriterTextReader、TextWriter 是抽象类,我们一般用其子类:System.IO.StreamReaderSystem.IO.StreamWriterSystem.IO.StringReaderSystem.IO.StringWriter读写 byte[] 的类:System.IO.StreamStream 下面有很多子类,比如:FileStream。Stream 中的东西实际上是被 S 阅读全文

posted @ 2011-07-04 12:17 qih33 阅读(442) 评论(0) 推荐(0)

导航