摘要: C#写入记事本(txt)文件方法一: FileStream stream = new FileStream(@"d:\aa.txt",FileMode.Create);//fileMode指定是读取还是写入 StreamWriter writer = new StreamWriter(stream) 阅读全文
posted @ 2016-02-23 15:38 段江涛IT 阅读(7134) 评论(0) 推荐(0)
摘要: 255) fc=255; if(bc>255) bc=255; //产生三个随机数,然后定义出一种颜色 int r=fc+random.nextInt(bc-fc); int g=fc+random.nextInt(bc-fc); int b=fc+random.nextInt(bc-fc); return new Color(r,g,b); } %> 阅读全文
posted @ 2016-02-23 15:29 段江涛IT 阅读(466) 评论(0) 推荐(0)
页脚HTML代码