向文件中写数据,读数据
来源:互联网 发布:qq同步助手 for mac 编辑:程序博客网 时间:2024/06/11 17:25
- private void WriteFile(string strPath,string strWrite)
- {
- FileStream fs = new FileStream(strPath, FileMode.Create, FileAccess.Write);
- StreamWriter sw = new StreamWriter(fs);
- sw.WriteLine(strWrite);
- sw.Close();
- }
- private string ReadFile(string strPath)
- {
- string strRead = string.Empty;
- FileStream fs = new FileStream(strPath, FileMode.Open, FileAccess.Read);
- StreamReader sr = new StreamReader(fs);
- if (sr.Peek() != -1)
- {
- strRead = sr.ReadLine();
- }
- sr.Close();
- return strRead;
- }
- 向文件中写数据,读数据
- 向JSON文件中写数据和读数据
- 向文件中写数据
- 读数据 写数据 上传 下载文件 整理
- 读数据库,写文件
- 通过MR读数据,往Hbase中写数据
- 向Ini文件中写入流数据
- Java向Excel文件中写数据
- 向文件中写数据的方法
- BufferedWriter向文件中写数据
- Java向文件中写数据
- geoTools向shp文件中写数据
- 多线程向一个文件中写数据
- STL初始化、读数据、写数据
- 【C语言】【unix c】文件写数据与文件读数据(系统调用函数)
- 向txt文件中写数据(每行三个数据)
- Linux中使用shell脚本向文件中写数据
- Hbase写数据,存数据,读数据的详细过程
- 顾问成长(10)-客户永远是顾问最好的老师
- [转]Linux之旅(1): diff, patch和quilt (上)
- 实践出真知
- 传感器网络
- [转]Linux之旅(1): diff, patch和quilt (下)
- 向文件中写数据,读数据
- 陈一舟:这些年
- 5日精通CSS层叠样式表(第1日 1.1)
- isxdigit() 函数
- SQL_SqlDataAdapter 类说明
- memchr() 函数
- 5日精通CSS层叠样式表(第1日 1.2)
- 使用HttpWebRequest的POST取得网页内容
- 成就“虚购”幻想