c# 删除程序占用的文件,清理删除文件,彻底删除文件,解除文件占用
文件打开时是,以共享模式打开
FileStream inputStream = new FileStream(name, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
p.BackgroundImage = new Bitmap(inputStream);...
分类:
其他好文 时间:
2014-06-08 17:21:06
阅读次数:
206
遍历List集合中的元素的方法有两种:
第一种:利用迭代器遍历
代码1:
// 迭代器
Iterator it=list.iterator();
while(it.hasNext())
{
System.out.println(it.next());
}或者代码2:
for(Iterator it=list.iterator();it.hasNext();)
{
System.o...
分类:
其他好文 时间:
2014-06-08 15:22:50
阅读次数:
189
1. 创建目录
SQL> create directory dump_file as ‘/db/backup’;
2. 目录赋权限
SQL> grant read,write on directorydump_file to bam;
查看目录
SQL> select * from dba_directories;
3. 备份
SQL>expdp user/pwd directo...
分类:
数据库 时间:
2014-06-08 10:07:15
阅读次数:
333
0.素数计数函数x/ln(x)1.随机化的代码: #include #include
srand((unsigned)time(NULL)); m=rand()%(r-l+1)+l;2.读入一整行字符串 getline(cin,s);
cin.ignore();//忽视一行
分类:
其他好文 时间:
2014-06-07 23:51:54
阅读次数:
400
从当初的强烈支持正版到现在的怀疑是否有必要支持正版,总结思考一下这其中的转变。事件1在起点做了将近6年的正版用户,08、09年左右的时候看小说时是正版的坚定的支持者。基于如下原因,一份劳作就应该一份收获;作者也需要生活,如果都是免费的,作者无法生存,读者也无好书可看。简单来说,就是你付出,我付出。但...
分类:
其他好文 时间:
2014-06-07 23:28:03
阅读次数:
184
linux
grep命令详解http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2856896.htmlgrep
(global search regular expression(RE) and print out the line,全面搜索正则...
分类:
系统相关 时间:
2014-06-07 22:50:42
阅读次数:
387
这里使用Adobe Read 组件
的方式首先电脑上需要安装AdobeReadVS中添加COM引用再在工具选项卡中添加Adobe PDF Read 组件即可从工具箱中直接拖动组件到窗体中即可
解决办法: 定义一个MotionEvent对象,在ondown里面赋值 private
MotionEvent mLastOnDownEvent = null; @Override public boolean onDown(MotionEvent
arg0) { mLastOnD...
分类:
其他好文 时间:
2014-06-07 22:45:18
阅读次数:
352
在ios中,rootview为PassWordViewController,secondview为SecondViewController,实现在rootview中听过一个跳转按钮实现跳转到secondview中,实现方法如下:在PassWordViewController.h中添加button的事...
分类:
移动开发 时间:
2014-06-07 20:36:33
阅读次数:
217
1 //break是结束整个循环体,退出了整个while循环 2 3 int x = 0; 4
while (x++ < 10) 5 { 6 if (x == 3) 7...
分类:
其他好文 时间:
2014-06-07 16:53:19
阅读次数:
190