-
Dushu
数独游戏的Csharp源代码,很不错的,可以不注册下载(Sudoku game Csharp source code, very good, they do not register to download)
- 2010-02-19 17:40:50下载
- 积分:1
-
C# OpenRead获取网站源代码,并保存到TXT文件Stream流中
C#获取网页源代码,并将其保存为TXT文件,这里应用了OpenRead和Stream流方法,具体的实现,请参见以下代码:
richTextBox1.Text = string.Empty;
WebClient wclient = new WebClient();//实例化WebClient类对象
wclient.BaseAddress = textBox1.Text;//设置WebClient的基URI
wclient.Encoding = Encoding.UTF8;//指定下载字符串的编码方式
//为WebClient类对象添加标头
wclient.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
//使用OpenRead方法获取指定网站的数据,并保存到Stream流中
Stream stream = wclient.OpenRead(textBox1.Text);
//使用流Stream声明一个流读取变量sreader
StreamReader sreader = new StreamReader(stream);
string str = string.Empty;//声明一个变量,用来保存一行从WebCliecnt下载的数据
//循环读取从指定网站获得的数据
while ((str = sreader.ReadLine()) != null)
{
richTextBox1.Text += str + "
";
}
//调用WebClient对象的DownloadFile方法将指定网站的内容保存到文件中
wclient.DownloadFile(textBox1.Text, DateTime.Now.ToFileTime() + ".txt");
MessageBox.Show("保存到文件成功");
- 2022-02-02 08:55:49下载
- 积分:1
-
老鼠用“*”来表示,要求从迷宫的左上脚选择一条路径,跑道右下脚的出口。...
老鼠用“*”来表示,要求从迷宫的左上脚选择一条路径,跑道右下脚的出口。-rats with "*" to that request from the maze of left foot choose a path, right-foot runway exports.
- 2022-02-06 13:17:26下载
- 积分:1
-
provide asynchronous communication of a Class Library
提供异步通讯的一个类库-provide asynchronous communication of a Class Library
- 2022-07-23 14:12:34下载
- 积分:1
-
CubeMap
用OpenGL的立方体纹理技术实现天空盒的绘制,(Rendering skybox using cube map texture)
- 2016-01-15 17:02:33下载
- 积分:1
-
AN1078_dsPIC33FJ12MC202_MCLV
PMSM FOC PMSM 电机FOC控制方法,微芯公司DSP芯片,完整代码(PMSM FOC motor control)
- 2021-04-27 13:08:45下载
- 积分:1
-
matdix
说明: DOS and WINDOWS keyboard graphics test procedures, good source code
- 2018-12-25 23:32:22下载
- 积分:1
-
四大经典排序算法代码(matlab)
四大经典排序算法代码(matlab)四大经典排序算法代码(matlab)四大经典排序算法代码(matlab)
选择排序、插入排序、冒泡排序、合并排序
- 2022-01-26 00:34:12下载
- 积分:1
-
matlab-RLSaLMS
自适应信号处理中LMS算法和RLS算法的比较仿真(Adaptive signal processing in the LMS algorithm and RLS Algorithms Simulation)
- 2011-06-20 16:38:17下载
- 积分:1
-
OpenGL20031101
OPENGL资源 三维图形的好资源
是初学者的好资料(OPENGL 3D graphics resources, good resources are a good information for beginners)
- 2009-10-13 20:18:59下载
- 积分:1